Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 71.75 kB / 21.24 MB, free: 404 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001987/0.001987, allocations: 169.6 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 177.2 MB / 204.9 MB, free: 8.914 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 50.97 kB / 325.6 MB, free: 244 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1184, allocations: 53.34 MB / 378.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.007422/0.1258, allocations: 2.796 MB / 381.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002553/0.1284, allocations: 0.7206 MB / 382.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002631/0.1286, allocations: 7.938 kB / 382.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003002/0.1289, allocations: 55.42 kB / 382.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003693/0.1293, allocations: 103.1 kB / 382.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005619/0.1299, allocations: 99.8 kB / 382.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008542/0.1307, allocations: 422.1 kB / 383.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002843/0.131, allocations: 75.52 kB / 383.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004142/0.1314, allocations: 167.4 kB / 383.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003555/0.1318, allocations: 147.3 kB / 383.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.554e-05/0.1319, allocations: 32 kB / 383.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.132, allocations: 36 kB / 383.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.1321, allocations: 71.75 kB / 383.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002619/0.1324, allocations: 147.3 kB / 383.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007682/0.1332, allocations: 398.4 kB / 384.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1332, allocations: 0 / 384.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1332, allocations: 0 / 384.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.1332, allocations: 0 / 384.2 MB, free: 10.38 MB / 350.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.001712/0.1349, allocations: 0.5676 MB / 384.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.1349, allocations: 12.03 kB / 384.7 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000291/0.1352, allocations: 48.69 kB / 384.8 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006245/0.1359, allocations: 229.8 kB / 385 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/0.1359, allocations: 21.03 kB / 385 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.409e-05/0.136, allocations: 28.38 kB / 385.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.137, allocations: 412.6 kB / 385.5 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.137, allocations: 0 / 385.5 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.239e-05/0.137, allocations: 15.98 kB / 385.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.1371, allocations: 11.94 kB / 385.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009041/0.138, allocations: 214.5 kB / 385.7 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00294/0.1409, allocations: 0.8101 MB / 386.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009297/0.1418, allocations: 210.6 kB / 386.7 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004333/0.1423, allocations: 96.69 kB / 386.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.1423, allocations: 4 kB / 386.8 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/0.1423, allocations: 38.56 kB / 386.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 3.005e-06/0.1423, allocations: 0 / 386.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002185/0.1445, allocations: 415.1 kB / 387.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.1446, allocations: 59.34 kB / 387.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/0.145, allocations: 241.7 kB / 387.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.1451, allocations: 29.7 kB / 387.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000214/0.1453, allocations: 192.5 kB / 387.8 MB, free: 6.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.761e-05/0.1454, allocations: 71.33 kB / 387.8 MB, free: 6.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.1455, allocations: 45.94 kB / 387.9 MB, free: 6.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002214/0.1457, allocations: 338.8 kB / 388.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000391/0.1461, allocations: 76.42 kB / 388.3 MB, free: 6.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004032/0.1465, allocations: 108.4 kB / 388.4 MB, free: 5.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007812/0.1473, allocations: 187 kB / 388.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1473, allocations: 0 / 388.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001302/0.1486, allocations: 322.8 kB / 388.9 MB, free: 5.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.1486, allocations: 7.938 kB / 388.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.1486, allocations: 4 kB / 388.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004851/0.1491, allocations: 77.73 kB / 389 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003659/0.1495, allocations: 39.91 kB / 389 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004369/0.1539, allocations: 2.783 MB / 391.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003668/0.1542, allocations: 23.91 kB / 391.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.087e-05/0.1543, allocations: 4 kB / 391.8 MB, free: 2.234 MB / 350.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.0002634/0.1545, allocations: 137.8 kB / 392 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.1546, allocations: 23.86 kB / 392 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.325e-05/0.1547, allocations: 34.2 kB / 392 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.1547, allocations: 4 kB / 392 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.1547, allocations: 64 / 392 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.1547, allocations: 4 kB / 392 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001815/0.1566, allocations: 0.5769 MB / 392.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1566, allocations: 4.125 kB / 392.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.1568, allocations: 27.98 kB / 392.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003996/0.1572, allocations: 89.53 kB / 392.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.1572, allocations: 8 kB / 392.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00414/0.1614, allocations: 2.772 MB / 395.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1614, allocations: 0 / 395.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.1626, allocations: 373.5 kB / 395.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.811e-05/0.1627, allocations: 27.78 kB / 395.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.455e-05/0.1627, allocations: 8 kB / 395.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004593/0.1632, allocations: 35.97 kB / 395.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.1633, allocations: 19.95 kB / 395.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.756e-05/0.1633, allocations: 12 kB / 396 MB, free: 13.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000321/0.1636, allocations: 173.2 kB / 396.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1636, allocations: 0 / 396.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007389/0.1644, allocations: 95.84 kB / 396.2 MB, free: 13.54 MB / 366.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.000201/0.1646, allocations: 115.1 kB / 396.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.1659, allocations: 429.1 kB / 396.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.1659, allocations: 0 / 396.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008076/0.1667, allocations: 341.3 kB / 397.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006166/0.1673, allocations: 40.59 kB / 397.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.1687, allocations: 0.508 MB / 397.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.1689, allocations: 159.5 kB / 397.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001554/0.1691, allocations: 17.95 kB / 397.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.95e-05/0.1691, allocations: 16.5 kB / 397.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1691, allocations: 4 kB / 397.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of Templates: time 0.01278/0.1819, allocations: 3.545 MB / 401.4 MB, free: 8.332 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.4209127919748425]