Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 111.5 kB / 17.29 MB, free: 6.219 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.001431/0.001431, allocations: 193.3 kB / 18.21 MB, free: 5.293 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.323/1.323, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 39.25 kB / 300.8 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08192/0.08299, allocations: 49.46 MB / 350.2 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003373/0.08639, allocations: 2.176 MB / 352.4 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009203/0.08734, allocations: 0.5454 MB / 353 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.08746, allocations: 4 kB / 353 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001279/0.0876, allocations: 19.86 kB / 353 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.358e-05/0.08773, allocations: 35.69 kB / 353 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.08796, allocations: 39.91 kB / 353.1 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.08815, allocations: 151.3 kB / 353.2 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.08831, allocations: 53.44 kB / 353.3 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.08845, allocations: 67.72 kB / 353.3 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.08857, allocations: 67.7 kB / 353.4 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.461e-05/0.0886, allocations: 12 kB / 353.4 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.772e-05/0.08867, allocations: 16 kB / 353.4 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.336e-05/0.08871, allocations: 35.84 kB / 353.5 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.616e-05/0.08878, allocations: 67.67 kB / 353.5 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.08895, allocations: 124 kB / 353.6 MB, free: 1.332 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.08896, allocations: 0 / 353.6 MB, free: 1.332 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.08897, allocations: 0 / 353.6 MB, free: 1.332 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.08898, allocations: 0 / 353.6 MB, free: 1.332 MB / 286.1 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.0005463/0.08953, allocations: 447.1 kB / 354.1 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.08958, allocations: 8.031 kB / 354.1 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.353e-05/0.08967, allocations: 16.75 kB / 354.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.08988, allocations: 208.1 kB / 354.3 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.08991, allocations: 4.609 kB / 354.3 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.08994, allocations: 16.31 kB / 354.3 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002376/0.09018, allocations: 123.8 kB / 354.4 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.0902, allocations: 8 kB / 354.5 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.09023, allocations: 4 kB / 354.5 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.09024, allocations: 4 kB / 354.5 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.09041, allocations: 76.66 kB / 354.5 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007982/0.09122, allocations: 0.6094 MB / 355.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.09151, allocations: 78.62 kB / 355.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.602e-05/0.09159, allocations: 40.95 kB / 355.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.09162, allocations: 0 / 355.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.09165, allocations: 38.5 kB / 355.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 8.31e-07/0.09166, allocations: 0 / 355.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006444/0.09231, allocations: 255.4 kB / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.09236, allocations: 55.34 kB / 355.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.09248, allocations: 149.8 kB / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.09251, allocations: 25.7 kB / 355.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.567e-05/0.09258, allocations: 124 kB / 355.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.246e-05/0.0926, allocations: 23.64 kB / 355.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.156e-05/0.09265, allocations: 21.72 kB / 355.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.09275, allocations: 330.8 kB / 356.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.371e-05/0.09282, allocations: 19.98 kB / 356.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.651e-05/0.0929, allocations: 38.56 kB / 356.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001299/0.09303, allocations: 70.5 kB / 356.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.09305, allocations: 4 kB / 356.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002685/0.09332, allocations: 134.3 kB / 356.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.09335, allocations: 11.98 kB / 356.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.09336, allocations: 3.938 kB / 356.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001726/0.09354, allocations: 32.84 kB / 356.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.518e-05/0.0936, allocations: 16.05 kB / 356.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/0.0952, allocations: 1.689 MB / 358.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.352e-05/0.09528, allocations: 7.938 kB / 358.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.0953, allocations: 7.984 kB / 358.3 MB, free: 12.23 MB / 302.1 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 9.346e-05/0.0954, allocations: 125.1 kB / 358.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.283e-05/0.09544, allocations: 11.84 kB / 358.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.298e-05/0.09546, allocations: 12.72 kB / 358.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.09547, allocations: 0 / 358.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.09548, allocations: 3.938 kB / 358.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.09549, allocations: 0 / 358.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002065/0.0957, allocations: 213.6 kB / 358.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.09571, allocations: 0 / 358.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.106e-05/0.09575, allocations: 11.92 kB / 358.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001226/0.09588, allocations: 40.78 kB / 358.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.0959, allocations: 48 / 358.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.09712, allocations: 1.685 MB / 360.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.09713, allocations: 0 / 360.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002858/0.09742, allocations: 220.2 kB / 360.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.032e-05/0.09747, allocations: 85.02 kB / 360.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.09749, allocations: 0 / 360.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.0976, allocations: 12.17 kB / 360.7 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.09765, allocations: 4 kB / 360.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.09766, allocations: 3.938 kB / 360.7 MB, free: 9.586 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.074e-05/0.09774, allocations: 118 kB / 360.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.09775, allocations: 0 / 360.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003487/0.0981, allocations: 43.84 kB / 360.9 MB, free: 9.43 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: 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.0001038/0.09821, allocations: 102.3 kB / 361 MB, free: 9.324 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003506/0.09857, allocations: 190.7 kB / 361.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.09858, allocations: 4 kB / 361.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.09879, allocations: 150.7 kB / 361.3 MB, free: 8.961 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.09905, allocations: 15.92 kB / 361.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000521/0.09958, allocations: 365.5 kB / 361.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.09983, allocations: 0.7119 MB / 362.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.676e-05/0.09987, allocations: 11.44 kB / 362.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09987, allocations: 0 / 362.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of Templates: time 0.003141/0.103, allocations: 1.895 MB / 364.3 MB, free: 5.914 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches