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.001462/0.001462, allocations: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001599/0.001599, allocations: 205.9 kB / 18.79 MB, free: 4.254 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.505/1.505, allocations: 230.4 MB / 250 MB, free: 8.98 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.001883/0.001883, allocations: 71.83 kB / 367.4 MB, free: 7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2628, allocations: 53.3 MB / 420.7 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003737/0.2665, allocations: 2.177 MB / 422.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.2676, allocations: 0.6078 MB / 423.4 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2677, allocations: 8 kB / 423.4 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.2678, allocations: 23.78 kB / 423.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.989e-05/0.2679, allocations: 43.56 kB / 423.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002291/0.2682, allocations: 51.88 kB / 423.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000203/0.2684, allocations: 159.2 kB / 423.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.2685, allocations: 45.44 kB / 423.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.2687, allocations: 63.8 kB / 423.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.2688, allocations: 67.67 kB / 423.9 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.2688, allocations: 20 kB / 423.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.232e-05/0.2689, allocations: 24 kB / 423.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.382e-05/0.2689, allocations: 35.8 kB / 424 MB, free: 5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.221e-05/0.269, allocations: 67.67 kB / 424 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.2692, allocations: 163.2 kB / 424.2 MB, free: 4.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.383e-06/0.2692, allocations: 8 kB / 424.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2692, allocations: 0 / 424.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2692, allocations: 0 / 424.2 MB, free: 4.77 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.0006321/0.2699, allocations: 447 kB / 424.6 MB, free: 4.281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.2699, allocations: 12.03 kB / 424.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000194/0.2701, allocations: 24.83 kB / 424.7 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003341/0.2704, allocations: 212.1 kB / 424.9 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.2705, allocations: 8.609 kB / 424.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/0.2705, allocations: 12.38 kB / 424.9 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.2707, allocations: 123.8 kB / 425 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.2707, allocations: 0 / 425 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.2708, allocations: 8 kB / 425 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.2708, allocations: 0 / 425 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.271, allocations: 84.66 kB / 425.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008928/0.2719, allocations: 0.5979 MB / 425.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/0.2721, allocations: 82.62 kB / 425.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.952e-05/0.2722, allocations: 32.95 kB / 425.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.2722, allocations: 0 / 425.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.2723, allocations: 38.5 kB / 425.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.2723, allocations: 3.938 kB / 425.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006864/0.273, allocations: 251.5 kB / 426.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.273, allocations: 55.34 kB / 426.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.2731, allocations: 156 kB / 426.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.2732, allocations: 25.7 kB / 426.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.531e-05/0.2732, allocations: 136 kB / 426.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.2733, allocations: 23.83 kB / 426.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.66e-05/0.2733, allocations: 25.67 kB / 426.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.2734, allocations: 318.8 kB / 426.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.669e-05/0.2735, allocations: 23.98 kB / 426.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.073e-05/0.2736, allocations: 42.56 kB / 426.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.2737, allocations: 74.48 kB / 427 MB, free: 1.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2737, allocations: 0 / 427 MB, free: 1.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003018/0.274, allocations: 134.3 kB / 427.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.274, allocations: 4 kB / 427.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.274, allocations: 8.047 kB / 427.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001833/0.2742, allocations: 40.78 kB / 427.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.448e-05/0.2743, allocations: 8.234 kB / 427.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001605/0.2759, allocations: 1.678 MB / 428.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.467e-05/0.276, allocations: 15.89 kB / 428.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.276, allocations: 4.062 kB / 428.9 MB, free: 15.67 MB / 350.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.0001013/0.2761, allocations: 125.8 kB / 429 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.139e-05/0.2761, allocations: 7.953 kB / 429 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.386e-05/0.2761, allocations: 16.7 kB / 429 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.2761, allocations: 0 / 429 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.22e-07/0.2761, allocations: 0 / 429 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.2761, allocations: 0 / 429 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.2764, allocations: 213.5 kB / 429.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2764, allocations: 0 / 429.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.657e-05/0.2764, allocations: 8 kB / 429.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000128/0.2765, allocations: 40.95 kB / 429.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.2765, allocations: 8.125 kB / 429.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/0.278, allocations: 1.685 MB / 431 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.278, allocations: 0 / 431 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003201/0.2783, allocations: 216.3 kB / 431.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.667e-05/0.2784, allocations: 85.05 kB / 431.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.2784, allocations: 4 kB / 431.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.757e-05/0.2785, allocations: 4 kB / 431.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.2785, allocations: 7.984 kB / 431.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.2785, allocations: 4 kB / 431.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.844e-05/0.2786, allocations: 116.9 kB / 431.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2786, allocations: 7.938 kB / 431.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000351/0.279, allocations: 39.89 kB / 431.4 MB, free: 12.86 MB / 350.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.0001179/0.2791, allocations: 95.78 kB / 431.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003926/0.2795, allocations: 190.5 kB / 431.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2795, allocations: 0 / 431.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000216/0.2797, allocations: 159 kB / 431.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.28, allocations: 12.12 kB / 431.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005689/0.2805, allocations: 295.6 kB / 432.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.2809, allocations: 0.7119 MB / 432.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.884e-05/0.2809, allocations: 4.438 kB / 432.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.482e-05/0.2809, allocations: 11.44 kB / 432.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2809, allocations: 0 / 432.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of Templates: time 0.004716/0.2857, allocations: 1.53 MB / 434.4 MB, free: 9.789 MB / 350.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/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