Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001401, allocations: 198.9 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.5 MB / 244.3 MB, free: 6.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007645/0.0007645, allocations: 94.16 kB / 296.4 MB, free: 6.789 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002116/0.0002116, allocations: 8 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2438, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002026/0.2459, allocations: 1.799 MB / 409.3 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008142/0.2467, allocations: 0.5551 MB / 409.8 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.2468, allocations: 0 / 409.8 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.247, allocations: 23.84 kB / 409.9 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.53e-05/0.2471, allocations: 31.7 kB / 409.9 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001961/0.2473, allocations: 27.95 kB / 409.9 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001444/0.2474, allocations: 148.2 kB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001797/0.2476, allocations: 39.34 kB / 410.1 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.2478, allocations: 59.78 kB / 410.2 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.953e-05/0.2479, allocations: 59.7 kB / 410.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.164e-05/0.2479, allocations: 11.94 kB / 410.2 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.595e-05/0.248, allocations: 9.531 kB / 410.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.839e-05/0.248, allocations: 19.92 kB / 410.3 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.2481, allocations: 53.64 kB / 410.3 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.2482, allocations: 116.7 kB / 410.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2482, allocations: 0.7812 kB / 410.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2482, allocations: 0 / 410.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2482, allocations: 1.375 kB / 410.4 MB, free: 24.86 MB / 298.7 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.0005293/0.2488, allocations: 428.9 kB / 410.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.2488, allocations: 12.03 kB / 410.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.249, allocations: 29.05 kB / 410.9 MB, free: 24.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.2492, allocations: 206.8 kB / 411.1 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.2492, allocations: 8.234 kB / 411.1 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.122e-05/0.2493, allocations: 16.7 kB / 411.1 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.2495, allocations: 119.5 kB / 411.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.2495, allocations: 0 / 411.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.2496, allocations: 4 kB / 411.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.2496, allocations: 4 kB / 411.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.2497, allocations: 88.58 kB / 411.3 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007025/0.2505, allocations: 0.6135 MB / 411.9 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002703/0.2507, allocations: 90.56 kB / 412 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.125e-05/0.2508, allocations: 32.97 kB / 412.1 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.2508, allocations: 4 kB / 412.1 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/0.2509, allocations: 30.56 kB / 412.1 MB, free: 23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.2509, allocations: 0 / 412.1 MB, free: 23 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006411/0.2515, allocations: 263.4 kB / 412.4 MB, free: 22.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.226e-05/0.2516, allocations: 55.41 kB / 412.4 MB, free: 22.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.865e-05/0.2517, allocations: 148 kB / 412.6 MB, free: 22.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.2517, allocations: 25.7 kB / 412.6 MB, free: 22.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.096e-05/0.2517, allocations: 131.9 kB / 412.7 MB, free: 22.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.5e-05/0.2518, allocations: 15.81 kB / 412.7 MB, free: 22.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-06/0.2518, allocations: 0 / 412.7 MB, free: 22.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.823e-05/0.2518, allocations: 326.8 kB / 413 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.026e-05/0.2519, allocations: 23.98 kB / 413.1 MB, free: 21.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.512e-05/0.252, allocations: 46.56 kB / 413.1 MB, free: 21.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.642e-05/0.252, allocations: 31.92 kB / 413.1 MB, free: 21.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2521, allocations: 0 / 413.1 MB, free: 21.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000254/0.2523, allocations: 142.3 kB / 413.3 MB, free: 21.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.2523, allocations: 6.188 kB / 413.3 MB, free: 21.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2523, allocations: 4 kB / 413.3 MB, free: 21.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001947/0.2525, allocations: 32.84 kB / 413.3 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.681e-05/0.2526, allocations: 15.92 kB / 413.3 MB, free: 21.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.2538, allocations: 1.527 MB / 414.9 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.096e-05/0.2539, allocations: 7.938 kB / 414.9 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.2539, allocations: 0 / 414.9 MB, free: 20 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 7.764e-05/0.254, allocations: 125.8 kB / 415 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.955e-05/0.254, allocations: 15.89 kB / 415 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.878e-05/0.254, allocations: 12.72 kB / 415 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.254, allocations: 0 / 415 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-06/0.254, allocations: 0 / 415 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.254, allocations: 4 kB / 415 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001648/0.2542, allocations: 217.5 kB / 415.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2542, allocations: 0 / 415.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.564e-05/0.2543, allocations: 7.984 kB / 415.3 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001053/0.2544, allocations: 36.84 kB / 415.3 MB, free: 19.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.2544, allocations: 0 / 415.3 MB, free: 19.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008587/0.2553, allocations: 1.495 MB / 416.8 MB, free: 17.9 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2553, allocations: 3.953 kB / 416.8 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002512/0.2555, allocations: 220.4 kB / 417 MB, free: 17.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.074e-05/0.2556, allocations: 92.97 kB / 417.1 MB, free: 17.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.2556, allocations: 3.984 kB / 417.1 MB, free: 17.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.2557, allocations: 8 kB / 417.1 MB, free: 17.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.877e-05/0.2558, allocations: 11.98 kB / 417.1 MB, free: 17.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.2558, allocations: 0 / 417.1 MB, free: 17.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.566e-05/0.2558, allocations: 114.3 kB / 417.2 MB, free: 17.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2558, allocations: 0 / 417.2 MB, free: 17.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003169/0.2562, allocations: 39.91 kB / 417.3 MB, free: 17.38 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001216/0.2563, allocations: 99.23 kB / 417.4 MB, free: 17.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003744/0.2567, allocations: 186.7 kB / 417.5 MB, free: 17.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2567, allocations: 0 / 417.5 MB, free: 17.08 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.2569, allocations: 162.5 kB / 417.7 MB, free: 16.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.2571, allocations: 19.88 kB / 417.7 MB, free: 16.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000493/0.2576, allocations: 376.1 kB / 418.1 MB, free: 16.49 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/0.2578, allocations: 0.7079 MB / 418.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.2578, allocations: 11.44 kB / 418.8 MB, free: 15.74 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2578, allocations: 0 / 418.8 MB, free: 15.74 MB / 298.7 MB Notification: Performance of Templates: time 0.003103/0.2609, allocations: 1.893 MB / 420.7 MB, free: 13.85 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches