Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001516/0.001516, allocations: 201.1 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 229.5 MB / 247.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009916/0.0009916, allocations: 92.53 kB / 299.8 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002125/0.0002127, allocations: 8 kB / 360.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2635, allocations: 51.42 MB / 412.1 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002075/0.2657, allocations: 1.804 MB / 413.9 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008785/0.2666, allocations: 0.8627 MB / 414.7 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.92e-05/0.2666, allocations: 0 / 414.7 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.2668, allocations: 23.84 kB / 414.7 MB, free: 23.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.72e-05/0.2668, allocations: 33.3 kB / 414.8 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001758/0.267, allocations: 35.95 kB / 414.8 MB, free: 23.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001338/0.2672, allocations: 155.2 kB / 415 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.2673, allocations: 52.98 kB / 415 MB, free: 22.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001407/0.2675, allocations: 59.77 kB / 415.1 MB, free: 22.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.619e-05/0.2676, allocations: 51.72 kB / 415.1 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.2676, allocations: 8 kB / 415.1 MB, free: 22.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.631e-05/0.2677, allocations: 15.98 kB / 415.1 MB, free: 22.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.279e-05/0.2677, allocations: 31.8 kB / 415.2 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.632e-05/0.2678, allocations: 85.38 kB / 415.3 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.2679, allocations: 165 kB / 415.4 MB, free: 22.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.268, allocations: 0 / 415.4 MB, free: 22.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.268, allocations: 0 / 415.4 MB, free: 22.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.268, allocations: 7.938 kB / 415.4 MB, free: 22.45 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004577/0.2684, allocations: 411.3 kB / 415.8 MB, free: 22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2685, allocations: 12.03 kB / 415.8 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.2687, allocations: 28.73 kB / 415.9 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/0.2688, allocations: 204 kB / 416.1 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.2689, allocations: 8.609 kB / 416.1 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/0.2689, allocations: 12.38 kB / 416.1 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002145/0.2691, allocations: 123.8 kB / 416.2 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2691, allocations: 0 / 416.2 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.2691, allocations: 0 / 416.2 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2692, allocations: 8 kB / 416.2 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.2693, allocations: 84.66 kB / 416.3 MB, free: 21.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006483/0.27, allocations: 0.6134 MB / 416.9 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.2702, allocations: 82.62 kB / 417 MB, free: 20.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.922e-05/0.2703, allocations: 32.98 kB / 417 MB, free: 20.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.2704, allocations: 0 / 417 MB, free: 20.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.728e-05/0.2704, allocations: 46.48 kB / 417.1 MB, free: 20.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.2704, allocations: 3.938 kB / 417.1 MB, free: 20.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005931/0.271, allocations: 263.4 kB / 417.3 MB, free: 20.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.894e-05/0.271, allocations: 55.34 kB / 417.4 MB, free: 20.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.873e-05/0.2711, allocations: 143.2 kB / 417.5 MB, free: 20.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.061e-05/0.2711, allocations: 29.7 kB / 417.6 MB, free: 20.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/0.2712, allocations: 124 kB / 417.7 MB, free: 19.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.199e-05/0.2712, allocations: 19.66 kB / 417.7 MB, free: 19.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-06/0.2712, allocations: 4 kB / 417.7 MB, free: 19.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.226e-05/0.2713, allocations: 318.8 kB / 418 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.825e-05/0.2713, allocations: 27.98 kB / 418 MB, free: 19.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.127e-05/0.2714, allocations: 46.56 kB / 418.1 MB, free: 19.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.2715, allocations: 70.5 kB / 418.2 MB, free: 19.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2715, allocations: 0 / 418.2 MB, free: 19.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002499/0.2718, allocations: 146.3 kB / 418.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.2718, allocations: 9.25 kB / 418.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.2718, allocations: 0 / 418.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001713/0.272, allocations: 36.78 kB / 418.3 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.215e-05/0.272, allocations: 15.92 kB / 418.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/0.2731, allocations: 1.514 MB / 419.9 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.05e-05/0.2732, allocations: 15.92 kB / 419.9 MB, free: 17.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.2732, allocations: 4 kB / 419.9 MB, free: 17.56 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 7.217e-05/0.2733, allocations: 125.8 kB / 420 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.625e-05/0.2733, allocations: 8.281 kB / 420 MB, free: 17.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.847e-05/0.2734, allocations: 12.72 kB / 420 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2734, allocations: 3.938 kB / 420 MB, free: 17.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.32e-07/0.2734, allocations: 0 / 420 MB, free: 17.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2734, allocations: 8 kB / 420 MB, free: 17.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.2736, allocations: 209.6 kB / 420.3 MB, free: 17.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2736, allocations: 0 / 420.3 MB, free: 17.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.549e-05/0.2736, allocations: 8.172 kB / 420.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.2737, allocations: 36.78 kB / 420.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.2737, allocations: 3.938 kB / 420.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008293/0.2746, allocations: 1.51 MB / 421.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.2746, allocations: 0 / 421.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.2748, allocations: 220.2 kB / 422 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.559e-05/0.2749, allocations: 85.19 kB / 422.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.2749, allocations: 11.94 kB / 422.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.641e-05/0.275, allocations: 8 kB / 422.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.275, allocations: 11.98 kB / 422.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.275, allocations: 0 / 422.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.325e-05/0.2751, allocations: 114.2 kB / 422.3 MB, free: 14.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2751, allocations: 0 / 422.3 MB, free: 14.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003074/0.2754, allocations: 35.94 kB / 422.3 MB, free: 14.93 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001294/0.2756, allocations: 107.2 kB / 422.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000357/0.2759, allocations: 194.5 kB / 422.6 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2759, allocations: 0 / 422.6 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.2761, allocations: 154.6 kB / 422.7 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.2764, allocations: 19.89 kB / 422.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000436/0.2768, allocations: 362.4 kB / 423.1 MB, free: 14.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.277, allocations: 0.7118 MB / 423.8 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.305e-05/0.277, allocations: 8.469 kB / 423.8 MB, free: 13.31 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.332e-05/0.277, allocations: 15.44 kB / 423.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.277, allocations: 0 / 423.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of Templates: time 0.003437/0.2805, allocations: 1.343 MB / 425.2 MB, free: 11.95 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches