Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001297/0.001297, allocations: 120.4 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 208 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.398/1.398, allocations: 227.7 MB / 247.9 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 67.88 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2396, allocations: 50.54 MB / 410.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003506/0.2431, allocations: 2.153 MB / 412.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.2443, allocations: 0.6117 MB / 413 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.682e-05/0.2444, allocations: 4 kB / 413 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.2445, allocations: 23.78 kB / 413 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.421e-05/0.2446, allocations: 51.55 kB / 413.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002519/0.2449, allocations: 47.89 kB / 413.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000218/0.2451, allocations: 163.2 kB / 413.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/0.2453, allocations: 45.45 kB / 413.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.2454, allocations: 63.78 kB / 413.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.2455, allocations: 67.69 kB / 413.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.2455, allocations: 12 kB / 413.4 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.07e-05/0.2456, allocations: 28 kB / 413.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.11e-05/0.2456, allocations: 31.84 kB / 413.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.932e-05/0.2457, allocations: 75.61 kB / 413.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.246, allocations: 163.2 kB / 413.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.246, allocations: 0 / 413.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.246, allocations: 3.938 kB / 413.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.246, allocations: 0 / 413.7 MB, free: 13.89 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.0006265/0.2466, allocations: 454.9 kB / 414.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.2467, allocations: 12.03 kB / 414.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.2468, allocations: 28.83 kB / 414.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.2471, allocations: 208.1 kB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.2472, allocations: 8.609 kB / 414.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.2472, allocations: 12.38 kB / 414.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.2474, allocations: 123.8 kB / 414.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.2474, allocations: 3.984 kB / 414.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.2475, allocations: 4 kB / 414.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.2475, allocations: 4 kB / 414.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.2477, allocations: 76.67 kB / 414.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008768/0.2486, allocations: 0.6019 MB / 415.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.2489, allocations: 78.62 kB / 415.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.071e-05/0.2489, allocations: 36.97 kB / 415.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.2489, allocations: 0 / 415.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.249, allocations: 30.56 kB / 415.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.92e-07/0.249, allocations: 0 / 415.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007041/0.2497, allocations: 255.4 kB / 415.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.2497, allocations: 59.34 kB / 415.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.2499, allocations: 158.2 kB / 415.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.2499, allocations: 25.7 kB / 415.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.848e-05/0.25, allocations: 132.1 kB / 416 MB, free: 11.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.093e-05/0.25, allocations: 23.78 kB / 416 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.68e-05/0.25, allocations: 29.66 kB / 416.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.2502, allocations: 318.8 kB / 416.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.954e-05/0.2503, allocations: 23.98 kB / 416.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.448e-05/0.2503, allocations: 38.56 kB / 416.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.2505, allocations: 70.5 kB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2505, allocations: 0 / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002965/0.2508, allocations: 138.3 kB / 416.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.2508, allocations: 4 kB / 416.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.2508, allocations: 4.078 kB / 416.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002014/0.251, allocations: 45.14 kB / 416.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.74e-05/0.2511, allocations: 11.94 kB / 416.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.2528, allocations: 1.685 MB / 418.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.497e-05/0.2529, allocations: 15.92 kB / 418.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.2529, allocations: 7.984 kB / 418.4 MB, free: 8.781 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.0001251/0.253, allocations: 125.8 kB / 418.5 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.01e-05/0.253, allocations: 15.95 kB / 418.6 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.085e-05/0.2531, allocations: 8.719 kB / 418.6 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2531, allocations: 0 / 418.6 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2531, allocations: 4 kB / 418.6 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.2531, allocations: 0 / 418.6 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.2533, allocations: 209.5 kB / 418.8 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2533, allocations: 0 / 418.8 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.122e-05/0.2533, allocations: 7.984 kB / 418.8 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001193/0.2535, allocations: 40.97 kB / 418.8 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.2535, allocations: 3.984 kB / 418.8 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00148/0.255, allocations: 1.674 MB / 420.5 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.255, allocations: 0 / 420.5 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003143/0.2553, allocations: 220.3 kB / 420.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.344e-05/0.2553, allocations: 89.06 kB / 420.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.2553, allocations: 0 / 420.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.2554, allocations: 7.984 kB / 420.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.877e-05/0.2555, allocations: 7.938 kB / 420.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-06/0.2555, allocations: 192 / 420.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.112e-05/0.2556, allocations: 119.2 kB / 420.9 MB, free: 6.031 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2556, allocations: 0 / 420.9 MB, free: 6.031 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000361/0.2559, allocations: 47.83 kB / 421 MB, free: 5.984 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.0001189/0.256, allocations: 99.78 kB / 421.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004142/0.2565, allocations: 190.6 kB / 421.3 MB, free: 5.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2565, allocations: 0 / 421.3 MB, free: 5.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002178/0.2567, allocations: 154.7 kB / 421.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.257, allocations: 16.03 kB / 421.4 MB, free: 5.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006024/0.2576, allocations: 295.6 kB / 421.7 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.2579, allocations: 0.7196 MB / 422.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.92e-05/0.258, allocations: 4.422 kB / 422.4 MB, free: 4.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.284e-05/0.258, allocations: 11.44 kB / 422.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.258, allocations: 3.938 kB / 422.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of Templates: time 0.004848/0.2628, allocations: 1.52 MB / 424 MB, free: 2.902 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches