Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001069/0.001069, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2327, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003443/0.2362, allocations: 2.15 MB / 412.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.2373, allocations: 0.6195 MB / 412.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.2375, allocations: 4 kB / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.2376, allocations: 19.78 kB / 412.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.2377, allocations: 47.58 kB / 412.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.238, allocations: 51.88 kB / 412.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002193/0.2382, allocations: 163.2 kB / 413 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.2384, allocations: 57.45 kB / 413 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.2386, allocations: 67.77 kB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.2387, allocations: 67.7 kB / 413.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.658e-05/0.2387, allocations: 12 kB / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.529e-05/0.2388, allocations: 24 kB / 413.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.217e-05/0.2389, allocations: 35.8 kB / 413.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.814e-05/0.2389, allocations: 71.66 kB / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002305/0.2392, allocations: 168.5 kB / 413.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2392, allocations: 0 / 413.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2392, allocations: 0 / 413.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.2392, allocations: 0 / 413.5 MB, free: 14.04 MB / 334.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.0006203/0.2398, allocations: 439.2 kB / 413.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2399, allocations: 20.02 kB / 413.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.2401, allocations: 20.75 kB / 413.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003432/0.2404, allocations: 216.1 kB / 414.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.2404, allocations: 8.609 kB / 414.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.095e-05/0.2405, allocations: 8.375 kB / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000252/0.2407, allocations: 123.8 kB / 414.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.2407, allocations: 0 / 414.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.2408, allocations: 8 kB / 414.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.2408, allocations: 4 kB / 414.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.241, allocations: 76.67 kB / 414.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008186/0.2418, allocations: 0.6016 MB / 415 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.2421, allocations: 86.62 kB / 415.1 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.64e-05/0.2422, allocations: 32.97 kB / 415.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.2422, allocations: 3.938 kB / 415.1 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.2422, allocations: 38.5 kB / 415.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.382e-06/0.2423, allocations: 0 / 415.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006801/0.2429, allocations: 251.4 kB / 415.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.243, allocations: 59.33 kB / 415.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.2431, allocations: 153.2 kB / 415.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.2431, allocations: 25.7 kB / 415.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.912e-05/0.2432, allocations: 135.9 kB / 415.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.2432, allocations: 19.66 kB / 415.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.364e-05/0.2433, allocations: 21.72 kB / 415.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.2434, allocations: 318.8 kB / 416.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.364e-05/0.2435, allocations: 23.98 kB / 416.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.152e-05/0.2436, allocations: 42.56 kB / 416.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.2437, allocations: 70.5 kB / 416.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2437, allocations: 0 / 416.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002923/0.244, allocations: 138.3 kB / 416.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.244, allocations: 8 kB / 416.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.244, allocations: 3.938 kB / 416.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001988/0.2443, allocations: 37.16 kB / 416.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.094e-05/0.2443, allocations: 15.98 kB / 416.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/0.2458, allocations: 1.688 MB / 418.1 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.965e-05/0.2459, allocations: 11.97 kB / 418.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.2459, allocations: 4 kB / 418.1 MB, free: 8.938 MB / 334.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.0001005/0.246, allocations: 133.8 kB / 418.3 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.2461, allocations: 11.91 kB / 418.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.085e-05/0.2461, allocations: 8.719 kB / 418.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.2461, allocations: 0 / 418.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.2461, allocations: 4 kB / 418.3 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.2461, allocations: 0 / 418.3 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.2463, allocations: 209.5 kB / 418.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2464, allocations: 192 / 418.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-05/0.2464, allocations: 7.984 kB / 418.5 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001236/0.2465, allocations: 44.84 kB / 418.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.2466, allocations: 4 kB / 418.5 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001389/0.2479, allocations: 1.685 MB / 420.2 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.248, allocations: 0 / 420.2 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003527/0.2483, allocations: 224.2 kB / 420.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.315e-05/0.2484, allocations: 81.02 kB / 420.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.2484, allocations: 0 / 420.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.2485, allocations: 11.98 kB / 420.5 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.649e-05/0.2486, allocations: 0 / 420.5 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.2486, allocations: 8 kB / 420.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.06e-05/0.2487, allocations: 111.2 kB / 420.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2487, allocations: 3.938 kB / 420.7 MB, free: 6.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003753/0.2491, allocations: 43.84 kB / 420.7 MB, free: 6.129 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.0001181/0.2492, allocations: 99.25 kB / 420.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004115/0.2496, allocations: 190.8 kB / 421 MB, free: 5.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2496, allocations: 0 / 421 MB, free: 5.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.2498, allocations: 166.7 kB / 421.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.2501, allocations: 11.98 kB / 421.2 MB, free: 5.637 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005802/0.2507, allocations: 305.7 kB / 421.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.251, allocations: 0.7119 MB / 422.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.041e-05/0.251, allocations: 11.44 kB / 422.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.251, allocations: 0 / 422.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of Templates: time 0.003819/0.2549, allocations: 1.946 MB / 424.1 MB, free: 2.602 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches