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.001189/0.001189, allocations: 104.4 kB / 18.35 MB, free: 4.516 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.00107/0.00107, allocations: 187 kB / 19.29 MB, free: 3.586 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.607/1.607, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.0014/0.0014, allocations: 55.91 kB / 282.1 MB, free: 2.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1164, allocations: 46.63 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004775/0.1212, allocations: 2.96 MB / 331.7 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.1227, allocations: 0.7137 MB / 332.4 MB, free: 64 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.1229, allocations: 7.938 kB / 332.4 MB, free: 56 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.1231, allocations: 55.5 kB / 332.5 MB, free: 0 / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.1234, allocations: 99.17 kB / 332.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/0.1237, allocations: 91.86 kB / 332.7 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004294/0.1241, allocations: 414 kB / 333.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.1243, allocations: 111.1 kB / 333.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.1246, allocations: 151.4 kB / 333.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.1248, allocations: 167.2 kB / 333.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.868e-05/0.1248, allocations: 32 kB / 333.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.085e-05/0.1249, allocations: 32 kB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.051e-05/0.125, allocations: 71.77 kB / 333.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.1251, allocations: 175.1 kB / 333.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004204/0.1256, allocations: 390.6 kB / 334.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1256, allocations: 0 / 334.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1256, allocations: 0 / 334.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1256, allocations: 0 / 334.2 MB, free: 14.3 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.001084/0.1267, allocations: 0.6275 MB / 334.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.1267, allocations: 15.89 kB / 334.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.382e-05/0.1268, allocations: 36.56 kB / 334.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005304/0.1274, allocations: 291.5 kB / 335.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.1274, allocations: 20.94 kB / 335.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.1275, allocations: 24.38 kB / 335.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000548/0.128, allocations: 261.2 kB / 335.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.128, allocations: 0 / 335.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.697e-05/0.1281, allocations: 16 kB / 335.4 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1281, allocations: 4 kB / 335.4 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004754/0.1286, allocations: 218.1 kB / 335.7 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.1303, allocations: 0.9716 MB / 336.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005061/0.1308, allocations: 303.7 kB / 336.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.131, allocations: 108.8 kB / 337 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.131, allocations: 4 kB / 337 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.1311, allocations: 38.56 kB / 337.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.1311, allocations: 0 / 337.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001267/0.1324, allocations: 0.5597 MB / 337.6 MB, free: 10.58 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.1324, allocations: 51.41 kB / 337.7 MB, free: 10.52 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002608/0.1327, allocations: 258.6 kB / 337.9 MB, free: 10.26 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.1327, allocations: 33.7 kB / 338 MB, free: 10.22 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.1328, allocations: 179.9 kB / 338.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.778e-05/0.1329, allocations: 67 kB / 338.2 MB, free: 9.969 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.181e-05/0.133, allocations: 45.86 kB / 338.3 MB, free: 9.918 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1331, allocations: 338.8 kB / 338.6 MB, free: 9.578 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.1333, allocations: 76.42 kB / 338.7 MB, free: 9.504 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002334/0.1336, allocations: 103.5 kB / 338.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003745/0.1339, allocations: 202.3 kB / 339 MB, free: 9.188 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.134, allocations: 0 / 339 MB, free: 9.188 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006164/0.1346, allocations: 322.8 kB / 339.3 MB, free: 8.859 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.1346, allocations: 4 kB / 339.3 MB, free: 8.855 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.1346, allocations: 7.938 kB / 339.3 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003329/0.135, allocations: 73.67 kB / 339.4 MB, free: 8.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.1352, allocations: 39.91 kB / 339.4 MB, free: 8.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002416/0.1376, allocations: 3.051 MB / 342.4 MB, free: 5.395 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/0.1378, allocations: 31.92 kB / 342.5 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.1379, allocations: 4 kB / 342.5 MB, free: 5.359 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.0001815/0.1381, allocations: 133.8 kB / 342.6 MB, free: 5.219 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.721e-05/0.1381, allocations: 35.66 kB / 342.6 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.99e-05/0.1382, allocations: 26.17 kB / 342.7 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1382, allocations: 4 kB / 342.7 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.1382, allocations: 192 / 342.7 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.1382, allocations: 8 kB / 342.7 MB, free: 5.148 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.1393, allocations: 0.6881 MB / 343.4 MB, free: 4.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.1393, allocations: 4 kB / 343.4 MB, free: 4.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.1394, allocations: 23.98 kB / 343.4 MB, free: 4.367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002047/0.1396, allocations: 81.59 kB / 343.5 MB, free: 4.281 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.1396, allocations: 0 / 343.5 MB, free: 4.281 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002256/0.1419, allocations: 3.032 MB / 346.5 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1419, allocations: 0 / 346.5 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006048/0.1425, allocations: 393.4 kB / 346.9 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.35e-05/0.1426, allocations: 100.8 kB / 347 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.91e-05/0.1427, allocations: 4 kB / 347 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/0.1429, allocations: 31.97 kB / 347 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.08e-05/0.143, allocations: 27.95 kB / 347.1 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.143, allocations: 4 kB / 347.1 MB, free: 392 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001761/0.1432, allocations: 186 kB / 347.2 MB, free: 204 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1432, allocations: 0 / 347.2 MB, free: 204 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004071/0.1436, allocations: 95.75 kB / 347.3 MB, free: 108 kB / 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.0001481/0.1438, allocations: 123.1 kB / 347.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007283/0.1445, allocations: 441.1 kB / 347.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1445, allocations: 0 / 347.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003896/0.1449, allocations: 345.5 kB / 348.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.1453, allocations: 48.61 kB / 348.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009856/0.1463, allocations: 0.4889 MB / 348.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.1467, allocations: 0.76 MB / 349.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.1468, allocations: 22.3 kB / 349.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.061e-05/0.1469, allocations: 23.42 kB / 349.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1469, allocations: 0 / 349.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of Templates: time 0.008256/0.1552, allocations: 3.7 MB / 353.3 MB, free: 10.07 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches