Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 97.8 kB / 16.3 MB, free: 6.457 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.001403/0.001404, allocations: 184.5 kB / 17.2 MB, free: 6.34 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.401/1.401, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002722/0.0002723, allocations: 7.062 kB / 300.7 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1145, allocations: 50.42 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00272/0.1173, allocations: 2.397 MB / 353.5 MB, free: 9.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009822/0.1183, allocations: 0.686 MB / 354.2 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.1184, allocations: 4 kB / 354.2 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.633e-05/0.1185, allocations: 39.69 kB / 354.3 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002107/0.1187, allocations: 131.6 kB / 354.4 MB, free: 8.488 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.1189, allocations: 59.92 kB / 354.4 MB, free: 8.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003272/0.1193, allocations: 279.4 kB / 354.7 MB, free: 8.156 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001889/0.1195, allocations: 81.69 kB / 354.8 MB, free: 8.074 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.1197, allocations: 131.5 kB / 354.9 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.1198, allocations: 139.4 kB / 355.1 MB, free: 7.809 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.1199, allocations: 16 kB / 355.1 MB, free: 7.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.38e-05/0.1199, allocations: 20 kB / 355.1 MB, free: 7.773 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.472e-05/0.12, allocations: 55.75 kB / 355.1 MB, free: 7.719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.582e-05/0.1201, allocations: 89.52 kB / 355.2 MB, free: 7.625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.1203, allocations: 267.2 kB / 355.5 MB, free: 7.363 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1203, allocations: 0 / 355.5 MB, free: 7.363 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1203, allocations: 3.938 kB / 355.5 MB, free: 7.359 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1203, allocations: 4 kB / 355.5 MB, free: 7.355 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008707/0.1212, allocations: 0.5884 MB / 356.1 MB, free: 6.719 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1212, allocations: 12.02 kB / 356.1 MB, free: 6.707 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.628e-05/0.1213, allocations: 39.58 kB / 356.1 MB, free: 6.668 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.1216, allocations: 262.5 kB / 356.4 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.1217, allocations: 24.56 kB / 356.4 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.188e-05/0.1217, allocations: 27.94 kB / 356.5 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005038/0.1222, allocations: 260.8 kB / 356.7 MB, free: 6.062 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1222, allocations: 0 / 356.7 MB, free: 6.062 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.1223, allocations: 16 kB / 356.7 MB, free: 6.047 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.1223, allocations: 8 kB / 356.7 MB, free: 6.039 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004662/0.1228, allocations: 234.1 kB / 357 MB, free: 5.809 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.1243, allocations: 0.9875 MB / 357.9 MB, free: 4.754 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004972/0.1248, allocations: 304.3 kB / 358.2 MB, free: 4.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.1248, allocations: 4.188 kB / 358.2 MB, free: 4.426 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.1249, allocations: 38.73 kB / 358.3 MB, free: 4.379 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.1249, allocations: 0 / 358.3 MB, free: 4.379 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001246/0.1261, allocations: 0.5802 MB / 358.9 MB, free: 3.754 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.1262, allocations: 59.39 kB / 358.9 MB, free: 3.684 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.1264, allocations: 258.5 kB / 359.2 MB, free: 3.418 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.1265, allocations: 29.7 kB / 359.2 MB, free: 3.383 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1266, allocations: 179.9 kB / 359.4 MB, free: 3.199 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.482e-05/0.1266, allocations: 74.94 kB / 359.5 MB, free: 3.125 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.125e-05/0.1266, allocations: 11.94 kB / 359.5 MB, free: 3.113 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1268, allocations: 330.8 kB / 359.8 MB, free: 2.781 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.127, allocations: 84.42 kB / 359.9 MB, free: 2.695 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.1272, allocations: 119.4 kB / 360 MB, free: 2.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.1274, allocations: 87.98 kB / 360.1 MB, free: 2.484 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1274, allocations: 0 / 360.1 MB, free: 2.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006013/0.128, allocations: 338.8 kB / 360.4 MB, free: 2.141 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.128, allocations: 4 kB / 360.4 MB, free: 2.137 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.128, allocations: 0 / 360.4 MB, free: 2.137 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002666/0.1283, allocations: 73.67 kB / 360.5 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.1285, allocations: 47.91 kB / 360.5 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/0.1306, allocations: 2.866 MB / 363.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.1308, allocations: 39.77 kB / 363.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.1308, allocations: 8 kB / 363.4 MB, free: 14.84 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001543/0.131, allocations: 141 kB / 363.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.011e-05/0.1311, allocations: 23.72 kB / 363.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.575e-05/0.1311, allocations: 34.17 kB / 363.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1311, allocations: 3.953 kB / 363.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1311, allocations: 4 kB / 363.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1311, allocations: 0 / 363.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009457/0.1321, allocations: 0.6989 MB / 364.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1321, allocations: 0 / 364.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.1322, allocations: 27.92 kB / 364.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001771/0.1324, allocations: 81.61 kB / 364.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1324, allocations: 4 kB / 364.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001996/0.1344, allocations: 2.843 MB / 367.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1345, allocations: 4.75 kB / 367.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005797/0.135, allocations: 385.9 kB / 367.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.369e-05/0.1351, allocations: 108.8 kB / 367.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.1352, allocations: 4 kB / 367.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002445/0.1354, allocations: 39.97 kB / 367.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.052e-05/0.1355, allocations: 27.91 kB / 367.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.1355, allocations: 8 kB / 367.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.1357, allocations: 182 kB / 368 MB, free: 9.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1357, allocations: 0 / 368 MB, free: 9.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003863/0.1361, allocations: 99.69 kB / 368.1 MB, free: 9.762 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001361/0.1362, allocations: 111.2 kB / 368.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000718/0.1369, allocations: 466 kB / 368.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.137, allocations: 0 / 368.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003988/0.1374, allocations: 362.1 kB / 369.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.1377, allocations: 52.33 kB / 369.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008209/0.1385, allocations: 0.5907 MB / 369.7 MB, free: 8.117 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.1388, allocations: 0.7715 MB / 370.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.89e-05/0.1389, allocations: 22.3 kB / 370.5 MB, free: 7.293 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.889e-05/0.139, allocations: 23.44 kB / 370.5 MB, free: 7.27 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.139, allocations: 0 / 370.5 MB, free: 7.27 MB / 302.1 MB Notification: Performance of Templates: time 0.00634/0.1453, allocations: 3.29 MB / 373.8 MB, free: 4.004 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches