Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 101.2 kB / 16.51 MB, free: 6.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 193.2 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 42.5 kB / 300.1 MB, free: 6.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1327, allocations: 49.46 MB / 349.5 MB, free: 4.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005347/0.1381, allocations: 3.515 MB / 353 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.14, allocations: 0.7403 MB / 353.8 MB, free: 428 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004432/0.1404, allocations: 11.94 kB / 353.8 MB, free: 416 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.1408, allocations: 47.61 kB / 353.8 MB, free: 368 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004878/0.1413, allocations: 123 kB / 353.9 MB, free: 244 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.1417, allocations: 87.92 kB / 354 MB, free: 156 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006563/0.1423, allocations: 0.4898 MB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.1426, allocations: 115.8 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003325/0.143, allocations: 175.3 kB / 354.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003223/0.1433, allocations: 199 kB / 355 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.307e-05/0.1434, allocations: 24 kB / 355 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.83e-05/0.1435, allocations: 28 kB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.39e-05/0.1436, allocations: 75.61 kB / 355.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.1438, allocations: 210.9 kB / 355.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000442/0.1443, allocations: 454.3 kB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1443, allocations: 0 / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1443, allocations: 0 / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.1443, allocations: 0 / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001422/0.1458, allocations: 0.7246 MB / 356.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.1458, allocations: 8.031 kB / 356.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.293e-05/0.1459, allocations: 74.72 kB / 356.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.1461, allocations: 48.38 kB / 356.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004454/0.1466, allocations: 303.3 kB / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/0.1466, allocations: 29.03 kB / 357 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-05/0.1467, allocations: 28.38 kB / 357 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000689/0.1474, allocations: 362.8 kB / 357.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.1474, allocations: 4 kB / 357.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.031e-05/0.1474, allocations: 19.98 kB / 357.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.1475, allocations: 8 kB / 357.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005815/0.148, allocations: 270.4 kB / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.1504, allocations: 1.418 MB / 359 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004427/0.1509, allocations: 226.3 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.1511, allocations: 108.8 kB / 359.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.1511, allocations: 3.984 kB / 359.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.1512, allocations: 38.56 kB / 359.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.376e-06/0.1512, allocations: 0 / 359.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001653/0.1529, allocations: 0.6997 MB / 360.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.1529, allocations: 51.41 kB / 360.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004078/0.1533, allocations: 304.6 kB / 360.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.1534, allocations: 33.7 kB / 360.5 MB, free: 9.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.1536, allocations: 212.1 kB / 360.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.1537, allocations: 78.84 kB / 360.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.1538, allocations: 45.7 kB / 360.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.154, allocations: 342.8 kB / 361.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/0.1543, allocations: 75.95 kB / 361.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.1545, allocations: 128.2 kB / 361.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004059/0.1549, allocations: 204.1 kB / 361.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.1549, allocations: 4 kB / 361.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000758/0.1557, allocations: 355.5 kB / 361.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.1557, allocations: 4 kB / 361.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.1557, allocations: 4 kB / 361.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004483/0.1562, allocations: 110.6 kB / 362 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.1564, allocations: 43.84 kB / 362.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004472/0.1609, allocations: 4.438 MB / 366.5 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002812/0.1612, allocations: 27.77 kB / 366.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.425e-05/0.1612, allocations: 8 kB / 366.5 MB, free: 2.812 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002278/0.1615, allocations: 153.8 kB / 366.7 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.926e-05/0.1615, allocations: 31.62 kB / 366.7 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.889e-05/0.1616, allocations: 39.17 kB / 366.8 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1616, allocations: 4 kB / 366.8 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.1616, allocations: 3.984 kB / 366.8 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1617, allocations: 288 / 366.8 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005582/0.1622, allocations: 373.3 kB / 367.1 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.1622, allocations: 3.984 kB / 367.1 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.1624, allocations: 31.86 kB / 367.2 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004722/0.1628, allocations: 110.5 kB / 367.3 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.1629, allocations: 4 kB / 367.3 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.275/0.4379, allocations: 4.446 MB / 371.7 MB, free: 22.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4379, allocations: 0.5312 kB / 371.7 MB, free: 22.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007622/0.4387, allocations: 404.4 kB / 372.1 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.4389, allocations: 124.6 kB / 372.2 MB, free: 22.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.562e-05/0.439, allocations: 8.422 kB / 372.2 MB, free: 22.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.4393, allocations: 19.73 kB / 372.3 MB, free: 22.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.4394, allocations: 27.38 kB / 372.3 MB, free: 22.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.4394, allocations: 5.234 kB / 372.3 MB, free: 22.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002887/0.4397, allocations: 219.8 kB / 372.5 MB, free: 22.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4397, allocations: 0 / 372.5 MB, free: 22.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008653/0.4406, allocations: 111.8 kB / 372.6 MB, free: 22.44 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001044/0.4417, allocations: 0.9507 MB / 373.6 MB, free: 21.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.4428, allocations: 0.567 MB / 374.1 MB, free: 21.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4428, allocations: 1.5 kB / 374.1 MB, free: 21.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006212/0.4435, allocations: 476.5 kB / 374.6 MB, free: 21.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006229/0.4441, allocations: 61.89 kB / 374.7 MB, free: 21.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005417/0.4495, allocations: 3.273 MB / 377.9 MB, free: 19.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.4499, allocations: 0.7931 MB / 378.7 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.4501, allocations: 26.81 kB / 378.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.4503, allocations: 109.1 kB / 378.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4503, allocations: 0 / 378.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03567/0.486, allocations: 7.883 MB / 386.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002122/0.4863, allocations: 243.7 kB / 387 MB, free: 16.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.3/2.786, allocations: 0 / 387 MB, free: 16.09 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches