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.001504/0.001504, allocations: 115.8 kB / 17.74 MB, free: 5.355 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.001797/0.001797, allocations: 185.5 kB / 18.66 MB, free: 4.441 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.322/1.322, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009606/0.0009607, allocations: 51.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2446, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003101/0.2478, allocations: 2.136 MB / 403.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008602/0.2487, allocations: 0.5455 MB / 404.1 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.994e-05/0.2488, allocations: 0 / 404.1 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.2489, allocations: 19.8 kB / 404.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.637e-05/0.249, allocations: 47.55 kB / 404.2 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001943/0.2492, allocations: 39.95 kB / 404.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.2494, allocations: 155.2 kB / 404.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.2495, allocations: 61.45 kB / 404.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.2496, allocations: 71.72 kB / 404.5 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.2498, allocations: 63.7 kB / 404.5 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.46e-05/0.2498, allocations: 12 kB / 404.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.838e-05/0.2499, allocations: 19.94 kB / 404.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.66e-05/0.2499, allocations: 23.92 kB / 404.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.373e-05/0.25, allocations: 67.67 kB / 404.7 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.2502, allocations: 172.5 kB / 404.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2502, allocations: 0 / 404.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2502, allocations: 4 kB / 404.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.2502, allocations: 3.938 kB / 404.8 MB, free: 5.457 MB / 318.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.0005811/0.2508, allocations: 439.2 kB / 405.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.2508, allocations: 8.031 kB / 405.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.279e-05/0.2509, allocations: 12.84 kB / 405.3 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002415/0.2512, allocations: 212 kB / 405.5 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.2512, allocations: 12.61 kB / 405.5 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.2512, allocations: 12.38 kB / 405.5 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002493/0.2515, allocations: 116.5 kB / 405.6 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.2515, allocations: 3.938 kB / 405.6 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.2515, allocations: 4 kB / 405.6 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.2515, allocations: 4 kB / 405.6 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.2517, allocations: 88.58 kB / 405.7 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000817/0.2525, allocations: 0.6018 MB / 406.3 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.2528, allocations: 78.62 kB / 406.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.132e-05/0.2529, allocations: 36.91 kB / 406.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.253, allocations: 0 / 406.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.253, allocations: 34.56 kB / 406.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 9.22e-07/0.253, allocations: 0 / 406.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007123/0.2537, allocations: 259.4 kB / 406.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.2538, allocations: 55.34 kB / 406.8 MB, free: 3.273 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.2539, allocations: 145.8 kB / 406.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.2539, allocations: 25.7 kB / 406.9 MB, free: 3.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.281e-05/0.254, allocations: 131.9 kB / 407.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.254, allocations: 19.75 kB / 407.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-05/0.2541, allocations: 21.62 kB / 407.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.2542, allocations: 326.8 kB / 407.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.076e-05/0.2543, allocations: 23.98 kB / 407.5 MB, free: 2.555 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.721e-05/0.2544, allocations: 38.56 kB / 407.5 MB, free: 2.508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.2545, allocations: 66.5 kB / 407.6 MB, free: 2.434 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2545, allocations: 4 kB / 407.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002792/0.2548, allocations: 142.2 kB / 407.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.2548, allocations: 8 kB / 407.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2549, allocations: 3.984 kB / 407.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001909/0.2551, allocations: 32.84 kB / 407.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.678e-05/0.2551, allocations: 11.98 kB / 407.8 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/0.2568, allocations: 1.697 MB / 409.5 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.843e-05/0.2569, allocations: 15.84 kB / 409.5 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.2569, allocations: 0 / 409.5 MB, free: 380 kB / 318.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.0001138/0.2571, allocations: 125.8 kB / 409.6 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.48e-05/0.2571, allocations: 11.84 kB / 409.6 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.422e-05/0.2571, allocations: 12.78 kB / 409.6 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2571, allocations: 4 kB / 409.6 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.2571, allocations: 0 / 409.6 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2571, allocations: 0 / 409.6 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002401/0.2574, allocations: 209.5 kB / 409.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2574, allocations: 0 / 409.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.106e-05/0.2575, allocations: 15.86 kB / 409.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/0.2576, allocations: 32.84 kB / 409.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.415e-06/0.2576, allocations: 0 / 409.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.2592, allocations: 1.689 MB / 411.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2592, allocations: 0 / 411.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.2595, allocations: 220.2 kB / 411.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.019e-05/0.2595, allocations: 85.02 kB / 411.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.2596, allocations: 0 / 411.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.2597, allocations: 12.06 kB / 411.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.2597, allocations: 3.984 kB / 411.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.2597, allocations: 4 kB / 411.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.662e-05/0.2598, allocations: 114 kB / 412 MB, free: 13.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2598, allocations: 0 / 412 MB, free: 13.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.2602, allocations: 43.84 kB / 412 MB, free: 13.57 MB / 334.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.0001212/0.2603, allocations: 99.72 kB / 412.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004448/0.2608, allocations: 202.5 kB / 412.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2608, allocations: 0 / 412.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002012/0.261, allocations: 150.7 kB / 412.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.2613, allocations: 12.25 kB / 412.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006341/0.2619, allocations: 317.7 kB / 412.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.2622, allocations: 0.708 MB / 413.5 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.007e-05/0.2623, allocations: 11.44 kB / 413.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2623, allocations: 4 kB / 413.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Templates: time 0.003869/0.2662, allocations: 1.893 MB / 415.4 MB, free: 10.09 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/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