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.0008372/0.0008373, allocations: 98.19 kB / 16.95 MB, free: 6.453 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.001087/0.001087, allocations: 185.7 kB / 17.84 MB, free: 6.004 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.507/1.507, allocations: 205.4 MB / 224 MB, free: 13.15 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.0006789/0.000679, allocations: 12 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1194, allocations: 47.58 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003264/0.1227, allocations: 2.528 MB / 330.9 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1241, allocations: 0.6868 MB / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002516/0.1244, allocations: 7.938 kB / 331.6 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001962/0.1246, allocations: 43.69 kB / 331.6 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002386/0.1249, allocations: 87.23 kB / 331.7 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002743/0.1252, allocations: 67.91 kB / 331.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004927/0.1257, allocations: 378.2 kB / 332.1 MB, free: 276 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002229/0.1259, allocations: 77.67 kB / 332.2 MB, free: 204 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002835/0.1262, allocations: 127.5 kB / 332.3 MB, free: 76 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.1264, allocations: 143.4 kB / 332.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.284e-05/0.1265, allocations: 16 kB / 332.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.298e-05/0.1266, allocations: 16 kB / 332.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.604e-05/0.1266, allocations: 55.75 kB / 332.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.191e-05/0.1267, allocations: 89.52 kB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.127, allocations: 271.5 kB / 332.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.127, allocations: 0 / 332.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.127, allocations: 0 / 332.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.1271, allocations: 4 kB / 332.9 MB, free: 15.48 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.000964/0.128, allocations: 0.5924 MB / 333.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.1281, allocations: 12.03 kB / 333.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.523e-05/0.1282, allocations: 35.62 kB / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004191/0.1286, allocations: 270.4 kB / 333.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.1286, allocations: 24.52 kB / 333.8 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.1287, allocations: 24 kB / 333.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005657/0.1292, allocations: 264.9 kB / 334.1 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.1293, allocations: 0 / 334.1 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.1293, allocations: 19.92 kB / 334.1 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.1293, allocations: 8 kB / 334.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004984/0.1298, allocations: 230.1 kB / 334.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.1315, allocations: 0.9875 MB / 335.4 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005083/0.1321, allocations: 316.2 kB / 335.7 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.1323, allocations: 113.2 kB / 335.8 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.1323, allocations: 4.188 kB / 335.8 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.1324, allocations: 38.75 kB / 335.8 MB, free: 12.37 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.1324, allocations: 4 kB / 335.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001286/0.1337, allocations: 0.5813 MB / 336.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.945e-05/0.1337, allocations: 59.41 kB / 336.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002628/0.134, allocations: 254.5 kB / 336.7 MB, free: 11.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.134, allocations: 29.7 kB / 336.7 MB, free: 11.37 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.1342, allocations: 179.9 kB / 336.9 MB, free: 11.19 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.699e-05/0.1342, allocations: 74.98 kB / 337 MB, free: 11.11 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.132e-05/0.1343, allocations: 4 kB / 337 MB, free: 11.11 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1344, allocations: 330.8 kB / 337.3 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.1346, allocations: 88.42 kB / 337.4 MB, free: 10.69 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.1348, allocations: 115.4 kB / 337.5 MB, free: 10.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.135, allocations: 99.88 kB / 337.6 MB, free: 10.47 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.135, allocations: 0 / 337.6 MB, free: 10.47 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006485/0.1357, allocations: 338.8 kB / 338 MB, free: 10.13 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1357, allocations: 7.938 kB / 338 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1357, allocations: 0 / 338 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002819/0.136, allocations: 77.67 kB / 338 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.1362, allocations: 43.97 kB / 338.1 MB, free: 9.996 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/0.1386, allocations: 2.831 MB / 340.9 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.1388, allocations: 27.78 kB / 340.9 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.1388, allocations: 12 kB / 340.9 MB, free: 6.859 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 (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.0001747/0.139, allocations: 149.8 kB / 341.1 MB, free: 6.703 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.237e-05/0.1391, allocations: 23.72 kB / 341.1 MB, free: 6.68 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.099e-05/0.1391, allocations: 30.19 kB / 341.1 MB, free: 6.648 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.1391, allocations: 3.984 kB / 341.1 MB, free: 6.645 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.1392, allocations: 4 kB / 341.2 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.1392, allocations: 0 / 341.2 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.1402, allocations: 0.6988 MB / 341.9 MB, free: 5.879 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.1402, allocations: 3.938 kB / 341.9 MB, free: 5.875 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.1404, allocations: 27.98 kB / 341.9 MB, free: 5.848 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.1405, allocations: 73.67 kB / 342 MB, free: 5.77 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.1406, allocations: 4 kB / 342 MB, free: 5.766 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/0.1428, allocations: 2.827 MB / 344.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.1428, allocations: 3.953 kB / 344.8 MB, free: 2.672 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000717/0.1435, allocations: 393.7 kB / 345.2 MB, free: 2.266 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.353e-05/0.1436, allocations: 108.8 kB / 345.3 MB, free: 2.141 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.1437, allocations: 7.938 kB / 345.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.1439, allocations: 32.22 kB / 345.3 MB, free: 2.102 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/0.1441, allocations: 27.91 kB / 345.3 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.796e-05/0.1441, allocations: 16 kB / 345.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001718/0.1443, allocations: 185.9 kB / 345.5 MB, free: 1.879 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1443, allocations: 0 / 345.5 MB, free: 1.879 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003885/0.1447, allocations: 95.75 kB / 345.6 MB, free: 1.785 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 (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.0001452/0.1448, allocations: 103.2 kB / 345.7 MB, free: 1.672 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007836/0.1456, allocations: 465.1 kB / 346.2 MB, free: 1.191 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.1456, allocations: 4.125 kB / 346.2 MB, free: 1.188 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000421/0.146, allocations: 353.2 kB / 346.5 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.1465, allocations: 48.55 kB / 346.6 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.1475, allocations: 0.5828 MB / 347.2 MB, free: 164 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005139/0.1481, allocations: 0.7678 MB / 347.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.1482, allocations: 22.28 kB / 348 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.618e-05/0.1483, allocations: 19.44 kB / 348 MB, free: 15.32 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1483, allocations: 3.938 kB / 348 MB, free: 15.32 MB / 302.1 MB Notification: Performance of Templates: time 0.007947/0.1562, allocations: 3.306 MB / 351.3 MB, free: 12.02 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/jenkins/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