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.001738/0.001738, allocations: 109.1 kB / 16.62 MB, free: 6.961 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.002126/0.002126, allocations: 189.8 kB / 17.55 MB, free: 6.066 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.575/1.575, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001436, allocations: 47.23 kB / 300.2 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1397, allocations: 49.44 MB / 349.7 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.006498/0.1462, allocations: 3.511 MB / 353.2 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.1485, allocations: 0.7559 MB / 353.9 MB, free: 368 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004997/0.1491, allocations: 8 kB / 354 MB, free: 360 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003734/0.1495, allocations: 43.61 kB / 354 MB, free: 316 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006215/0.1501, allocations: 119 kB / 354.1 MB, free: 196 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.1506, allocations: 95.91 kB / 354.2 MB, free: 100 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.1517, allocations: 0.5016 MB / 354.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003804/0.1521, allocations: 143.1 kB / 354.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005391/0.1527, allocations: 191.3 kB / 355 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000468/0.1531, allocations: 207.1 kB / 355.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.1533, allocations: 40 kB / 355.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.1534, allocations: 36 kB / 355.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.1535, allocations: 91.62 kB / 355.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002733/0.1538, allocations: 222.9 kB / 355.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006275/0.1544, allocations: 486.3 kB / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.1545, allocations: 0 / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1545, allocations: 0 / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.1545, allocations: 0 / 356.1 MB, free: 14.2 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.001371/0.1559, allocations: 0.7168 MB / 356.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/0.1559, allocations: 8.031 kB / 356.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001088/0.1561, allocations: 74.66 kB / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.1562, allocations: 48.38 kB / 356.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005269/0.1567, allocations: 311.3 kB / 357.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.717e-05/0.1568, allocations: 28.97 kB / 357.3 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.355e-05/0.1568, allocations: 28.38 kB / 357.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000743/0.1576, allocations: 362.9 kB / 357.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.1576, allocations: 4 kB / 357.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.045e-05/0.1577, allocations: 12 kB / 357.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.1577, allocations: 8 kB / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006081/0.1583, allocations: 274.4 kB / 357.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.1607, allocations: 1.422 MB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004861/0.1612, allocations: 222.3 kB / 359.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.1614, allocations: 112.8 kB / 359.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.1615, allocations: 0 / 359.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.748e-05/0.1615, allocations: 38.56 kB / 359.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.805e-06/0.1615, allocations: 4 kB / 359.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001691/0.1632, allocations: 0.6883 MB / 360.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.1633, allocations: 55.41 kB / 360.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003307/0.1636, allocations: 312.5 kB / 360.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.006e-05/0.1637, allocations: 33.7 kB / 360.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.1638, allocations: 212.1 kB / 361 MB, free: 8.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.44e-05/0.1639, allocations: 74.84 kB / 361.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.164, allocations: 49.69 kB / 361.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.1642, allocations: 342.8 kB / 361.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.1644, allocations: 75.95 kB / 361.6 MB, free: 8.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.1647, allocations: 124.2 kB / 361.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004048/0.1651, allocations: 204.1 kB / 361.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1651, allocations: 4 kB / 361.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007318/0.1658, allocations: 351.5 kB / 362.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1659, allocations: 6.969 kB / 362.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.1659, allocations: 4 kB / 362.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004571/0.1664, allocations: 118.5 kB / 362.3 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/0.1666, allocations: 31.92 kB / 362.4 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004602/0.1712, allocations: 4.97 MB / 367.3 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000267/0.1715, allocations: 27.83 kB / 367.4 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.1715, allocations: 4 kB / 367.4 MB, free: 2.086 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.0002404/0.1718, allocations: 165.6 kB / 367.5 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.967e-05/0.1719, allocations: 31.62 kB / 367.6 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.757e-05/0.1719, allocations: 35.17 kB / 367.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.172, allocations: 8.062 kB / 367.6 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.172, allocations: 0 / 367.6 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.172, allocations: 4.266 kB / 367.6 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005161/0.1725, allocations: 377.3 kB / 368 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.1725, allocations: 0 / 368 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.1727, allocations: 23.92 kB / 368 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003537/0.173, allocations: 114.4 kB / 368.1 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.1731, allocations: 11.98 kB / 368.1 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2851/0.4581, allocations: 4.961 MB / 373.1 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4582, allocations: 1.281 kB / 373.1 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.4593, allocations: 401.8 kB / 373.5 MB, free: 20.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002193/0.4595, allocations: 127.2 kB / 373.6 MB, free: 20.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.4596, allocations: 4.781 kB / 373.6 MB, free: 20.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.4598, allocations: 20.06 kB / 373.6 MB, free: 20.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.46, allocations: 26.48 kB / 373.7 MB, free: 20.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.46, allocations: 8.094 kB / 373.7 MB, free: 20.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004172/0.4605, allocations: 217.3 kB / 373.9 MB, free: 20.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4605, allocations: 0 / 373.9 MB, free: 20.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008993/0.4614, allocations: 114.4 kB / 374 MB, free: 20.68 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.001022/0.4624, allocations: 0.947 MB / 374.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.4636, allocations: 0.5751 MB / 375.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.4637, allocations: 1.281 kB / 375.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006279/0.4643, allocations: 486.8 kB / 376 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006873/0.465, allocations: 65.78 kB / 376.1 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004994/0.47, allocations: 3.263 MB / 379.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.4705, allocations: 0.8015 MB / 380.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.4707, allocations: 24.36 kB / 380.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.4708, allocations: 110.8 kB / 380.3 MB, free: 16.69 MB / 302.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4708, allocations: 0 / 380.3 MB, free: 16.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03238/0.5032, allocations: 8.241 MB / 388.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003607/0.5036, allocations: 241.4 kB / 388.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.214/2.717, allocations: 0 / 388.7 MB, free: 14.36 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