Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001804/0.001805, allocations: 115.9 kB / 18.41 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002118/0.002118, allocations: 203.5 kB / 19.36 MB, free: 3.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 227.4 MB / 247.5 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001267, allocations: 65.06 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1484, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004738/0.1532, allocations: 3.034 MB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.1548, allocations: 0.7595 MB / 362.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000176/0.155, allocations: 4 kB / 362.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.1552, allocations: 51.44 kB / 362.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002231/0.1554, allocations: 103 kB / 362.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.1558, allocations: 107.8 kB / 362.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004366/0.1563, allocations: 414.1 kB / 363.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00023/0.1565, allocations: 103.1 kB / 363.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000281/0.1568, allocations: 159.5 kB / 363.6 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.157, allocations: 167.2 kB / 363.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.914e-05/0.1571, allocations: 32 kB / 363.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.525e-05/0.1572, allocations: 36 kB / 363.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.748e-05/0.1572, allocations: 79.69 kB / 363.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.1574, allocations: 171.2 kB / 364.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004191/0.1578, allocations: 390.6 kB / 364.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.1579, allocations: 0 / 364.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1579, allocations: 0 / 364.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.208e-06/0.1579, allocations: 4 kB / 364.5 MB, free: 7.738 MB / 302.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.001069/0.159, allocations: 0.6314 MB / 365.1 MB, free: 7.059 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.159, allocations: 12.03 kB / 365.1 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002201/0.1592, allocations: 44.55 kB / 365.2 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004479/0.1597, allocations: 291.5 kB / 365.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.1597, allocations: 16.94 kB / 365.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.788e-05/0.1598, allocations: 32.36 kB / 365.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005247/0.1603, allocations: 261.2 kB / 365.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.1603, allocations: 0 / 365.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.1604, allocations: 12 kB / 365.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.1604, allocations: 12 kB / 365.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004849/0.1609, allocations: 214.1 kB / 366 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.1626, allocations: 0.9677 MB / 366.9 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005635/0.1632, allocations: 303.2 kB / 367.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.1634, allocations: 112.4 kB / 367.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.1634, allocations: 0 / 367.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.1635, allocations: 42.56 kB / 367.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.1635, allocations: 0 / 367.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001412/0.1649, allocations: 0.5597 MB / 368 MB, free: 4.008 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.165, allocations: 51.41 kB / 368 MB, free: 3.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/0.1653, allocations: 262.5 kB / 368.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.1654, allocations: 33.7 kB / 368.3 MB, free: 3.641 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.1655, allocations: 179.9 kB / 368.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.036e-05/0.1656, allocations: 70.98 kB / 368.5 MB, free: 3.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.1657, allocations: 45.94 kB / 368.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002633/0.166, allocations: 342.8 kB / 368.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.1662, allocations: 68.44 kB / 369 MB, free: 2.922 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.1664, allocations: 109.1 kB / 369.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003836/0.1668, allocations: 196.1 kB / 369.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1668, allocations: 0 / 369.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006458/0.1675, allocations: 326.8 kB / 369.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.1675, allocations: 8 kB / 369.6 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.1675, allocations: 0 / 369.6 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003224/0.1678, allocations: 77.66 kB / 369.7 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.168, allocations: 39.92 kB / 369.7 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2456/0.4136, allocations: 3.046 MB / 372.8 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003146/0.414, allocations: 27.73 kB / 372.8 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.414, allocations: 6.5 kB / 372.8 MB, free: 18.84 MB / 302.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.0001747/0.4142, allocations: 143.1 kB / 372.9 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.091e-05/0.4143, allocations: 29.66 kB / 373 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.037e-05/0.4143, allocations: 35.36 kB / 373 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.4143, allocations: 2.594 kB / 373 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.4144, allocations: 2.656 kB / 373 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.4144, allocations: 1.172 kB / 373 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.4155, allocations: 0.6819 MB / 373.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.4155, allocations: 2.406 kB / 373.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.4156, allocations: 23.81 kB / 373.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002228/0.4159, allocations: 77.44 kB / 373.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.4159, allocations: 4.094 kB / 373.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/0.4178, allocations: 3.044 MB / 376.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4178, allocations: 0 / 376.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006064/0.4184, allocations: 379.8 kB / 377.2 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-05/0.4185, allocations: 110 kB / 377.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.968e-05/0.4185, allocations: 2.562 kB / 377.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.4188, allocations: 31.42 kB / 377.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.338e-05/0.4189, allocations: 25.06 kB / 377.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.4189, allocations: 9.219 kB / 377.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001908/0.4191, allocations: 191.9 kB / 377.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4191, allocations: 0 / 377.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004185/0.4195, allocations: 91.84 kB / 377.7 MB, free: 15.28 MB / 302.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.0001345/0.4197, allocations: 103.6 kB / 377.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000744/0.4204, allocations: 449.2 kB / 378.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4204, allocations: 0.7188 kB / 378.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004203/0.4208, allocations: 347.5 kB / 378.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004379/0.4213, allocations: 48.33 kB / 378.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009579/0.4223, allocations: 0.4992 MB / 379.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.4225, allocations: 0.7679 MB / 379.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000116/0.4227, allocations: 25.97 kB / 379.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.394e-05/0.4227, allocations: 18.89 kB / 379.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4227, allocations: 1.25 kB / 379.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of Templates: time 0.009862/0.4326, allocations: 3.705 MB / 383.6 MB, free: 13.43 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches