Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 99.86 kB / 16.5 MB, free: 6.645 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.001645/0.001645, allocations: 195 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001056/0.001056, allocations: 48.02 kB / 300 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1325, allocations: 49.44 MB / 349.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004645/0.1372, allocations: 2.18 MB / 351.6 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.1385, allocations: 0.5454 MB / 352.1 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.1387, allocations: 4 kB / 352.1 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.1389, allocations: 15.84 kB / 352.1 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001363/0.139, allocations: 39.7 kB / 352.2 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.1393, allocations: 39.89 kB / 352.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.1395, allocations: 143.3 kB / 352.4 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.1397, allocations: 54.02 kB / 352.4 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.1399, allocations: 63.77 kB / 352.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.14, allocations: 63.7 kB / 352.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.1401, allocations: 8 kB / 352.5 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.852e-05/0.1402, allocations: 15.94 kB / 352.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.698e-05/0.1402, allocations: 27.91 kB / 352.6 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.493e-05/0.1403, allocations: 63.67 kB / 352.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.1406, allocations: 163.7 kB / 352.8 MB, free: 1.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1406, allocations: 0 / 352.8 MB, free: 1.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1406, allocations: 0 / 352.8 MB, free: 1.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.1406, allocations: 0 / 352.8 MB, free: 1.41 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007844/0.1414, allocations: 435.2 kB / 353.2 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.1414, allocations: 8.031 kB / 353.2 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.1416, allocations: 24.75 kB / 353.3 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.1419, allocations: 206.9 kB / 353.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.1419, allocations: 8.609 kB / 353.5 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.1419, allocations: 12.38 kB / 353.5 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.1422, allocations: 115.8 kB / 353.6 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1422, allocations: 0 / 353.6 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.1423, allocations: 4 kB / 353.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.1423, allocations: 4 kB / 353.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.1425, allocations: 84.59 kB / 353.7 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009854/0.1435, allocations: 0.6056 MB / 354.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003194/0.1438, allocations: 94.55 kB / 354.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.278e-05/0.1439, allocations: 24.98 kB / 354.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.1439, allocations: 7.875 kB / 354.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.144, allocations: 38.55 kB / 354.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.144, allocations: 0 / 354.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007249/0.1447, allocations: 251.4 kB / 354.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.1447, allocations: 59.34 kB / 354.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.1449, allocations: 141.8 kB / 354.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.1449, allocations: 37.7 kB / 354.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.888e-05/0.145, allocations: 120 kB / 355 MB, free: 14.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.145, allocations: 23.66 kB / 355.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.875e-05/0.1451, allocations: 21.7 kB / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1452, allocations: 322.8 kB / 355.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.593e-05/0.1453, allocations: 20 kB / 355.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.047e-05/0.1454, allocations: 42.56 kB / 355.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.1455, allocations: 74.48 kB / 355.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1455, allocations: 0 / 355.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003059/0.1459, allocations: 134.2 kB / 355.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.1459, allocations: 4 kB / 355.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1459, allocations: 4.062 kB / 355.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002195/0.1461, allocations: 40.83 kB / 355.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.857e-05/0.1462, allocations: 8 kB / 355.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/0.1478, allocations: 1.519 MB / 357.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.344e-05/0.1479, allocations: 15.83 kB / 357.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.1479, allocations: 4.047 kB / 357.3 MB, free: 12.51 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000113/0.148, allocations: 125.9 kB / 357.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.1481, allocations: 11.91 kB / 357.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.491e-05/0.1481, allocations: 12.72 kB / 357.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.1481, allocations: 3.938 kB / 357.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-06/0.1481, allocations: 192 / 357.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1481, allocations: 7.984 kB / 357.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.1484, allocations: 209.5 kB / 357.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1484, allocations: 0 / 357.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.302e-05/0.1484, allocations: 7.938 kB / 357.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000127/0.1486, allocations: 40.83 kB / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.1486, allocations: 0 / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.1499, allocations: 1.51 MB / 359.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.15, allocations: 0 / 359.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003326/0.1503, allocations: 220.1 kB / 359.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.135e-05/0.1504, allocations: 89.08 kB / 359.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.1504, allocations: 3.938 kB / 359.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.1505, allocations: 4 kB / 359.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.557e-05/0.1506, allocations: 11.98 kB / 359.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.1506, allocations: 0 / 359.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.484e-05/0.1507, allocations: 114 kB / 359.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1507, allocations: 0 / 359.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003734/0.1511, allocations: 39.94 kB / 359.7 MB, free: 9.887 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001426/0.1512, allocations: 103.2 kB / 359.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004178/0.1516, allocations: 186.5 kB / 359.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1516, allocations: 0 / 359.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002129/0.1519, allocations: 150.7 kB / 360.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.1522, allocations: 16.12 kB / 360.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000653/0.1528, allocations: 338.8 kB / 360.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.1533, allocations: 0.7082 MB / 361.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.479e-05/0.1533, allocations: 12.47 kB / 361.2 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.046e-05/0.1534, allocations: 7.438 kB / 361.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of SimCode: time 1.262e-06/0.1534, allocations: 4 kB / 361.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of Templates: time 0.004789/0.1582, allocations: 1.365 MB / 362.5 MB, free: 6.941 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches