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.001187/0.001187, allocations: 93.84 kB / 16.93 MB, free: 5.984 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.001353/0.001353, allocations: 178.6 kB / 17.82 MB, free: 5.652 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.482/1.482, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004276/0.0004276, allocations: 12 kB / 280.7 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.12, allocations: 47.58 MB / 328.3 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00298/0.1231, allocations: 2.362 MB / 330.7 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.1245, allocations: 0.7221 MB / 331.4 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003068/0.1248, allocations: 7.938 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.125, allocations: 31.75 kB / 331.4 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004563/0.1255, allocations: 139.6 kB / 331.6 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003143/0.1258, allocations: 63.92 kB / 331.6 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005257/0.1263, allocations: 275.4 kB / 331.9 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.1265, allocations: 85.64 kB / 332 MB, free: 428 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002762/0.1268, allocations: 127.5 kB / 332.1 MB, free: 300 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.127, allocations: 143.4 kB / 332.3 MB, free: 156 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.433e-05/0.1271, allocations: 20 kB / 332.3 MB, free: 136 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.531e-05/0.1272, allocations: 16 kB / 332.3 MB, free: 120 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.947e-05/0.1272, allocations: 55.75 kB / 332.3 MB, free: 64 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.154e-05/0.1273, allocations: 81.66 kB / 332.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002445/0.1276, allocations: 275.4 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1276, allocations: 0 / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1276, allocations: 0 / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.1276, allocations: 0 / 332.7 MB, free: 15.71 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.0009481/0.1286, allocations: 0.5924 MB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1286, allocations: 8.031 kB / 333.3 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.1287, allocations: 39.56 kB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.1291, allocations: 270.4 kB / 333.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.1291, allocations: 24.52 kB / 333.6 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.1292, allocations: 27.94 kB / 333.6 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005252/0.1297, allocations: 260.9 kB / 333.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1297, allocations: 4 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.495e-05/0.1298, allocations: 15.98 kB / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.1298, allocations: 4 kB / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005038/0.1303, allocations: 230.1 kB / 334.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.132, allocations: 0.9991 MB / 335.1 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004985/0.1326, allocations: 300.4 kB / 335.4 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.1326, allocations: 4.188 kB / 335.4 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.1326, allocations: 38.75 kB / 335.5 MB, free: 12.71 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.352e-06/0.1326, allocations: 0 / 335.5 MB, free: 12.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001283/0.1339, allocations: 0.5778 MB / 336.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.134, allocations: 55.41 kB / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002495/0.1342, allocations: 262.5 kB / 336.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.1343, allocations: 25.7 kB / 336.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.1344, allocations: 183.9 kB / 336.6 MB, free: 11.54 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.517e-05/0.1344, allocations: 67 kB / 336.6 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.264e-05/0.1344, allocations: 8 kB / 336.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1346, allocations: 330.8 kB / 337 MB, free: 11.13 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.1348, allocations: 88.42 kB / 337.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.135, allocations: 111.5 kB / 337.2 MB, free: 10.93 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.1352, allocations: 99.84 kB / 337.3 MB, free: 10.83 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.1352, allocations: 3.953 kB / 337.3 MB, free: 10.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006238/0.1358, allocations: 334.7 kB / 337.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1358, allocations: 4 kB / 337.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1359, allocations: 4 kB / 337.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000264/0.1361, allocations: 81.72 kB / 337.7 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.1363, allocations: 35.92 kB / 337.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00211/0.1384, allocations: 2.863 MB / 340.6 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.1386, allocations: 35.7 kB / 340.6 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.1387, allocations: 4 kB / 340.6 MB, free: 7.188 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.0001352/0.1388, allocations: 141.9 kB / 340.8 MB, free: 7.039 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.997e-05/0.1389, allocations: 35.66 kB / 340.8 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.384e-05/0.1389, allocations: 30.17 kB / 340.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1389, allocations: 4 kB / 340.8 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1389, allocations: 0 / 340.8 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.1389, allocations: 0 / 340.8 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009653/0.1399, allocations: 0.7027 MB / 341.5 MB, free: 6.203 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.1399, allocations: 0 / 341.5 MB, free: 6.203 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.1401, allocations: 31.98 kB / 341.6 MB, free: 6.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001723/0.1402, allocations: 77.55 kB / 341.6 MB, free: 6.09 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.1403, allocations: 7.984 kB / 341.6 MB, free: 6.082 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002073/0.1423, allocations: 2.847 MB / 344.5 MB, free: 2.973 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1424, allocations: 0 / 344.5 MB, free: 2.973 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006147/0.143, allocations: 405.6 kB / 344.9 MB, free: 2.555 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.305e-05/0.1431, allocations: 100.8 kB / 345 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.107e-05/0.1431, allocations: 8 kB / 345 MB, free: 2.43 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.1433, allocations: 35.97 kB / 345 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.705e-05/0.1434, allocations: 19.97 kB / 345 MB, free: 2.375 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.1434, allocations: 8 kB / 345.1 MB, free: 2.367 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000166/0.1436, allocations: 186 kB / 345.2 MB, free: 2.188 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1436, allocations: 0 / 345.2 MB, free: 2.188 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003713/0.144, allocations: 99.7 kB / 345.3 MB, free: 2.09 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.0001368/0.1441, allocations: 103.3 kB / 345.4 MB, free: 1.977 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000768/0.1449, allocations: 465.1 kB / 345.9 MB, free: 1.496 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1449, allocations: 0 / 345.9 MB, free: 1.496 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004151/0.1454, allocations: 353.2 kB / 346.2 MB, free: 1.125 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/0.1457, allocations: 44.66 kB / 346.3 MB, free: 1.082 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007914/0.1465, allocations: 0.5987 MB / 346.9 MB, free: 468 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.1468, allocations: 0.7717 MB / 347.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000104/0.1469, allocations: 22.3 kB / 347.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.691e-05/0.147, allocations: 19.38 kB / 347.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.147, allocations: 0 / 347.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Templates: time 0.006243/0.1533, allocations: 3.315 MB / 351 MB, free: 12.31 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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