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.001963/0.001963, allocations: 107.9 kB / 16.92 MB, free: 5.895 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.002277/0.002277, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.613/1.613, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 43.09 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1527, allocations: 49.45 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.006122/0.1589, allocations: 3.473 MB / 353.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.1613, allocations: 0.752 MB / 354.4 MB, free: 96 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006035/0.1619, allocations: 8 kB / 354.4 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005176/0.1625, allocations: 67.28 kB / 354.5 MB, free: 20 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008417/0.1633, allocations: 130.8 kB / 354.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006843/0.164, allocations: 107.8 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001228/0.1653, allocations: 0.5093 MB / 355.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004221/0.1658, allocations: 143.2 kB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005051/0.1663, allocations: 183.3 kB / 355.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004531/0.1667, allocations: 211.1 kB / 355.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.1669, allocations: 40 kB / 355.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.167, allocations: 36 kB / 355.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.1671, allocations: 91.62 kB / 355.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000359/0.1675, allocations: 226.9 kB / 356.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007099/0.1682, allocations: 478.3 kB / 356.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.1682, allocations: 4 kB / 356.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1683, allocations: 0 / 356.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.946e-05/0.1683, allocations: 0 / 356.6 MB, free: 13.88 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.001795/0.1701, allocations: 0.7168 MB / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.616e-05/0.1702, allocations: 8.031 kB / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001354/0.1703, allocations: 74.72 kB / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001591/0.1705, allocations: 52.38 kB / 357.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005735/0.1711, allocations: 315.2 kB / 357.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.246e-05/0.1711, allocations: 21.03 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.809e-05/0.1712, allocations: 32.38 kB / 357.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006779/0.1718, allocations: 366.8 kB / 358.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1719, allocations: 0 / 358.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.615e-05/0.1719, allocations: 16 kB / 358.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.1719, allocations: 8 kB / 358.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005691/0.1725, allocations: 270.4 kB / 358.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002637/0.1752, allocations: 1.415 MB / 359.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005549/0.1757, allocations: 222.4 kB / 360.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002651/0.176, allocations: 104.8 kB / 360.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.176, allocations: 0 / 360.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.221e-05/0.1761, allocations: 46.48 kB / 360.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.014e-06/0.1761, allocations: 0 / 360.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.002055/0.1782, allocations: 0.6942 MB / 360.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.1783, allocations: 59.41 kB / 361 MB, free: 9.176 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000511/0.1788, allocations: 300.6 kB / 361.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.326e-05/0.1789, allocations: 37.7 kB / 361.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/0.1791, allocations: 208.1 kB / 361.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.1793, allocations: 82.84 kB / 361.6 MB, free: 8.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/0.1794, allocations: 45.7 kB / 361.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002567/0.1797, allocations: 342.8 kB / 362 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.1799, allocations: 71.97 kB / 362 MB, free: 8.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/0.1802, allocations: 136.2 kB / 362.2 MB, free: 7.922 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004635/0.1807, allocations: 192.1 kB / 362.4 MB, free: 7.719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.1807, allocations: 0 / 362.4 MB, free: 7.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009702/0.1817, allocations: 363.5 kB / 362.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.1818, allocations: 4 kB / 362.7 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1818, allocations: 0 / 362.7 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005764/0.1824, allocations: 122.5 kB / 362.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.1826, allocations: 39.91 kB / 362.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005302/0.1879, allocations: 4.967 MB / 367.8 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003789/0.1883, allocations: 23.88 kB / 367.9 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.543e-05/0.1884, allocations: 15.92 kB / 367.9 MB, free: 1.758 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.0003349/0.1887, allocations: 157.6 kB / 368 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.1889, allocations: 31.91 kB / 368.1 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.172e-05/0.189, allocations: 39.17 kB / 368.1 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.189, allocations: 4 kB / 368.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.189, allocations: 8 kB / 368.1 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.189, allocations: 0 / 368.1 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006087/0.1896, allocations: 377.2 kB / 368.5 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1896, allocations: 0 / 368.5 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.1898, allocations: 19.98 kB / 368.5 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003862/0.1902, allocations: 114.5 kB / 368.6 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.1902, allocations: 8 kB / 368.6 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.299/0.4892, allocations: 4.961 MB / 373.6 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4892, allocations: 0 / 373.6 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007276/0.49, allocations: 404.6 kB / 374 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.4901, allocations: 126.7 kB / 374.1 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.041e-05/0.4902, allocations: 5.672 kB / 374.1 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.4904, allocations: 19.91 kB / 374.1 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.4905, allocations: 28.88 kB / 374.2 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.4906, allocations: 8.578 kB / 374.2 MB, free: 20.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002796/0.4909, allocations: 215.8 kB / 374.4 MB, free: 20.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.4909, allocations: 0 / 374.4 MB, free: 20.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008077/0.4917, allocations: 114.9 kB / 374.5 MB, free: 20.87 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.001056/0.4927, allocations: 0.9489 MB / 375.4 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.4939, allocations: 0.5773 MB / 376 MB, free: 19.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.4939, allocations: 0.6562 kB / 376 MB, free: 19.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005941/0.4945, allocations: 488.1 kB / 376.5 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005383/0.495, allocations: 57.52 kB / 376.5 MB, free: 19.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004948/0.5, allocations: 3.141 MB / 379.7 MB, free: 17.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.5005, allocations: 0.7965 MB / 380.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001946/0.5007, allocations: 24.25 kB / 380.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.5009, allocations: 108.9 kB / 380.6 MB, free: 16.71 MB / 302.1 MB Notification: Performance of SimCode: time 2.304e-06/0.501, allocations: 0 / 380.6 MB, free: 16.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.437/1.938, allocations: 8.451 MB / 389.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/15.03, allocations: 5.938 kB / 389.1 MB, free: 14.43 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