Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001835/0.001835, allocations: 91.61 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 165.3 kB / 24.28 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.539/1.539, allocations: 177.2 MB / 204.6 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.742e-05/2.901e-05, allocations: 10.25 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003961/0.00399, allocations: 2.167 MB / 274.5 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001211/0.005201, allocations: 0.5959 MB / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.529e-05/0.005296, allocations: 4 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001625/0.005459, allocations: 23.72 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.005566, allocations: 55.56 kB / 275.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002648/0.005831, allocations: 51.86 kB / 275.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002293/0.00606, allocations: 163.1 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.006218, allocations: 41.64 kB / 275.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002365/0.006454, allocations: 99.78 kB / 275.5 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.006577, allocations: 47.83 kB / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.403e-05/0.006611, allocations: 12 kB / 275.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.445e-05/0.006706, allocations: 27.92 kB / 275.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.323e-05/0.006739, allocations: 19.92 kB / 275.6 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.02e-05/0.006819, allocations: 59.83 kB / 275.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003127/0.007132, allocations: 175.4 kB / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.007136, allocations: 0 / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.007137, allocations: 0 / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.007142, allocations: 0 / 275.9 MB, free: 14.26 MB / 266.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.0007589/0.007901, allocations: 475.9 kB / 276.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.00794, allocations: 12.03 kB / 276.3 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002266/0.008167, allocations: 40.77 kB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.00842, allocations: 156.3 kB / 276.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.008437, allocations: 12.61 kB / 276.5 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.00846, allocations: 12.38 kB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002934/0.008753, allocations: 137.8 kB / 276.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.008765, allocations: 192 / 276.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.008785, allocations: 8.375 kB / 276.7 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.008794, allocations: 3.938 kB / 276.7 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.008983, allocations: 72.67 kB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009506/0.009934, allocations: 0.5143 MB / 277.3 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.01024, allocations: 91.09 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.315e-05/0.01033, allocations: 31.81 kB / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.01035, allocations: 0 / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.01039, allocations: 41.31 kB / 277.4 MB, free: 12.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 8.01e-07/0.01039, allocations: 0 / 277.4 MB, free: 12.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007307/0.01112, allocations: 181.1 kB / 277.6 MB, free: 12.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.01118, allocations: 59.34 kB / 277.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002257/0.0114, allocations: 224.8 kB / 277.9 MB, free: 12.03 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.01144, allocations: 29.7 kB / 277.9 MB, free: 12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.01159, allocations: 178.9 kB / 278.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.979e-05/0.01162, allocations: 23.8 kB / 278.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.227e-05/0.01167, allocations: 23.38 kB / 278.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002806/0.01195, allocations: 0.5001 MB / 278.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.758e-05/0.01202, allocations: 19.98 kB / 278.7 MB, free: 11.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.141e-05/0.01211, allocations: 51.05 kB / 278.7 MB, free: 11.17 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.01227, allocations: 86.95 kB / 278.8 MB, free: 11.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.01227, allocations: 0 / 278.8 MB, free: 11.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003315/0.0126, allocations: 133.4 kB / 278.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.01262, allocations: 6.562 kB / 278.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.01262, allocations: 4 kB / 278.9 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002435/0.01287, allocations: 47.61 kB / 279 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.427e-05/0.01293, allocations: 15.98 kB / 279 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002335/0.01527, allocations: 2.171 MB / 281.2 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.885e-05/0.01534, allocations: 4 kB / 281.2 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.086e-06/0.01534, allocations: 0 / 281.2 MB, free: 8.566 MB / 266.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 0.0001867/0.01553, allocations: 168.6 kB / 281.3 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.01557, allocations: 11.89 kB / 281.4 MB, free: 8.379 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.728e-05/0.01559, allocations: 12.78 kB / 281.4 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.0156, allocations: 3.938 kB / 281.4 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.0156, allocations: 4.016 kB / 281.4 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.01561, allocations: 8 kB / 281.4 MB, free: 8.352 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.01585, allocations: 172.6 kB / 281.6 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.01586, allocations: 4.047 kB / 281.6 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.261e-05/0.0159, allocations: 7.969 kB / 281.6 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000159/0.01606, allocations: 47.61 kB / 281.6 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.01607, allocations: 0 / 281.6 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002018/0.01808, allocations: 2.168 MB / 283.8 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.01809, allocations: 0 / 283.8 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003939/0.01848, allocations: 271.6 kB / 284 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.916e-05/0.0185, allocations: 7.953 kB / 284.1 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.01852, allocations: 11.94 kB / 284.1 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.508e-05/0.01861, allocations: 3.984 kB / 284.1 MB, free: 5.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.899e-05/0.01865, allocations: 8.031 kB / 284.1 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.01867, allocations: 11.98 kB / 284.1 MB, free: 5.461 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001284/0.0188, allocations: 151.2 kB / 284.2 MB, free: 5.312 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0188, allocations: 0 / 284.2 MB, free: 5.312 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003562/0.01915, allocations: 43.89 kB / 284.3 MB, free: 5.27 MB / 266.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.0001368/0.01929, allocations: 91.25 kB / 284.4 MB, free: 5.168 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004744/0.01976, allocations: 256.2 kB / 284.6 MB, free: 4.898 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.01977, allocations: 4.125 kB / 284.6 MB, free: 4.895 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002878/0.02005, allocations: 221.4 kB / 284.8 MB, free: 4.656 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.02033, allocations: 15.98 kB / 284.9 MB, free: 4.641 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005694/0.0209, allocations: 274.2 kB / 285.1 MB, free: 4.348 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001081/0.02101, allocations: 98.28 kB / 285.2 MB, free: 4.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.046e-05/0.02105, allocations: 4.484 kB / 285.2 MB, free: 4.223 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.949e-05/0.02108, allocations: 12.5 kB / 285.2 MB, free: 4.211 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.02108, allocations: 0 / 285.2 MB, free: 4.211 MB / 266.7 MB Notification: Performance of Templates: time 0.005297/0.02638, allocations: 1.507 MB / 286.7 MB, free: 2.719 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.351366046932526]