Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001333/0.001333, allocations: 100.6 kB / 17.93 MB, free: 5.41 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.001391/0.001391, allocations: 193.8 kB / 18.86 MB, free: 4.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.593/1.593, allocations: 205.1 MB / 224.7 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 47.94 kB / 280.8 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.12, allocations: 46.63 MB / 327.4 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004965/0.1251, allocations: 3.002 MB / 330.4 MB, free: 1.766 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1265, allocations: 0.7254 MB / 331.2 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.1267, allocations: 4 kB / 331.2 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.127, allocations: 43.62 kB / 331.2 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.1272, allocations: 87.3 kB / 331.3 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.1275, allocations: 79.86 kB / 331.4 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004395/0.1279, allocations: 406.2 kB / 331.8 MB, free: 432 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002398/0.1282, allocations: 115.1 kB / 331.9 MB, free: 324 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000215/0.1284, allocations: 147.5 kB / 332 MB, free: 176 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.1286, allocations: 163.3 kB / 332.2 MB, free: 12 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.945e-05/0.1287, allocations: 32.05 kB / 332.2 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.127e-05/0.1288, allocations: 32 kB / 332.2 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.659e-05/0.1288, allocations: 79.58 kB / 332.3 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.129, allocations: 175.1 kB / 332.5 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003113/0.1293, allocations: 283.5 kB / 332.8 MB, free: 15.42 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1293, allocations: 0 / 332.8 MB, free: 15.42 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1293, allocations: 0 / 332.8 MB, free: 15.42 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1294, allocations: 4 kB / 332.8 MB, free: 15.42 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.001271/0.1306, allocations: 0.6353 MB / 333.4 MB, free: 14.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.179e-05/0.1307, allocations: 11.89 kB / 333.4 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.762e-05/0.1308, allocations: 40.56 kB / 333.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.1312, allocations: 287.5 kB / 333.7 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.1312, allocations: 16.94 kB / 333.8 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.1313, allocations: 28.38 kB / 333.8 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005383/0.1319, allocations: 257.2 kB / 334 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.1319, allocations: 0 / 334 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.1319, allocations: 12 kB / 334 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1319, allocations: 8 kB / 334.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004751/0.1324, allocations: 218.1 kB / 334.3 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.1341, allocations: 0.9677 MB / 335.2 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005698/0.1347, allocations: 303.7 kB / 335.5 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002162/0.135, allocations: 112.8 kB / 335.6 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.135, allocations: 3.984 kB / 335.6 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.6e-05/0.135, allocations: 38.56 kB / 335.7 MB, free: 12.3 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.1351, allocations: 0 / 335.7 MB, free: 12.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001413/0.1365, allocations: 0.5636 MB / 336.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.1365, allocations: 55.41 kB / 336.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.1368, allocations: 254.6 kB / 336.5 MB, free: 11.36 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.188e-05/0.1369, allocations: 25.7 kB / 336.6 MB, free: 11.33 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.137, allocations: 183.9 kB / 336.8 MB, free: 11.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.472e-05/0.1371, allocations: 71 kB / 336.8 MB, free: 11.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.472e-05/0.1372, allocations: 49.84 kB / 336.9 MB, free: 11.02 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1373, allocations: 334.8 kB / 337.2 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.1375, allocations: 80.42 kB / 337.3 MB, free: 10.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002159/0.1378, allocations: 111.4 kB / 337.4 MB, free: 10.49 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003823/0.1382, allocations: 190.3 kB / 337.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1382, allocations: 0 / 337.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006494/0.1388, allocations: 322.7 kB / 337.9 MB, free: 9.965 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.1389, allocations: 8.062 kB / 337.9 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.1389, allocations: 0 / 337.9 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003267/0.1392, allocations: 73.67 kB / 338 MB, free: 9.879 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.1394, allocations: 39.91 kB / 338 MB, free: 9.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002836/0.1423, allocations: 3.044 MB / 341.1 MB, free: 6.512 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.1425, allocations: 31.86 kB / 341.1 MB, free: 6.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.1426, allocations: 8 kB / 341.1 MB, free: 6.473 MB / 286.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002239/0.1428, allocations: 137.8 kB / 341.2 MB, free: 6.328 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.023e-05/0.1429, allocations: 27.66 kB / 341.3 MB, free: 6.301 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.719e-05/0.1429, allocations: 30.17 kB / 341.3 MB, free: 6.273 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1429, allocations: 4 kB / 341.3 MB, free: 6.27 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.1429, allocations: 0 / 341.3 MB, free: 6.27 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.1429, allocations: 11.98 kB / 341.3 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.144, allocations: 0.6761 MB / 342 MB, free: 5.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.144, allocations: 0 / 342 MB, free: 5.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.1442, allocations: 35.91 kB / 342 MB, free: 5.484 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002065/0.1444, allocations: 77.66 kB / 342.1 MB, free: 5.402 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.1444, allocations: 4 kB / 342.1 MB, free: 5.398 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00278/0.1472, allocations: 3.036 MB / 345.1 MB, free: 2.086 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1472, allocations: 4.188 kB / 345.1 MB, free: 2.082 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000653/0.1479, allocations: 380.8 kB / 345.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.148, allocations: 108.8 kB / 345.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.36e-05/0.1481, allocations: 8 kB / 345.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002626/0.1483, allocations: 31.97 kB / 345.6 MB, free: 1.523 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.616e-05/0.1484, allocations: 15.98 kB / 345.7 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.1485, allocations: 11.94 kB / 345.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002993/0.1488, allocations: 190 kB / 345.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.295e-06/0.1488, allocations: 0 / 345.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004429/0.1492, allocations: 103.7 kB / 346 MB, free: 1.207 MB / 286.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001702/0.1494, allocations: 103.2 kB / 346.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009671/0.1504, allocations: 449.1 kB / 346.5 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.1504, allocations: 0 / 346.5 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004829/0.1509, allocations: 341.3 kB / 346.8 MB, free: 276 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005469/0.1514, allocations: 56.58 kB / 346.9 MB, free: 220 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.1526, allocations: 0.6389 MB / 347.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/0.1531, allocations: 0.7639 MB / 348.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.066e-05/0.1532, allocations: 19.44 kB / 348.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1532, allocations: 0 / 348.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of Templates: time 0.009375/0.1626, allocations: 5.605 MB / 353.9 MB, free: 9.125 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches