Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001316/0.001316, allocations: 180.7 kB / 16.41 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007471/0.0007473, allocations: 89.05 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002999/0.0002998, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.252, allocations: 47.58 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002669/0.2548, allocations: 2.397 MB / 376.9 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.2561, allocations: 0.7285 MB / 377.7 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001648/0.2562, allocations: 5.719 kB / 377.7 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.2564, allocations: 40.28 kB / 377.7 MB, free: 42.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001685/0.2566, allocations: 73.5 kB / 377.8 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.2569, allocations: 77.31 kB / 377.9 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.2572, allocations: 348.1 kB / 378.2 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.2575, allocations: 89.36 kB / 378.3 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.2576, allocations: 120.1 kB / 378.4 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.2578, allocations: 133.9 kB / 378.5 MB, free: 42.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.681e-05/0.2578, allocations: 16.31 kB / 378.6 MB, free: 42.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.603e-05/0.2579, allocations: 16.34 kB / 378.6 MB, free: 42.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.42e-05/0.2579, allocations: 49.11 kB / 378.6 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.055e-05/0.258, allocations: 84.58 kB / 378.7 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002373/0.2583, allocations: 256.2 kB / 379 MB, free: 42.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.2583, allocations: 4 kB / 379 MB, free: 42.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2583, allocations: 4 kB / 379 MB, free: 42.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.2583, allocations: 0 / 379 MB, free: 42.08 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009336/0.2592, allocations: 0.5677 MB / 379.5 MB, free: 41.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2593, allocations: 9.125 kB / 379.5 MB, free: 41.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.457e-05/0.2594, allocations: 37.83 kB / 379.6 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.2597, allocations: 247.7 kB / 379.8 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.158e-05/0.2598, allocations: 78.3 kB / 379.9 MB, free: 41.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.2598, allocations: 26.5 kB / 379.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004917/0.2603, allocations: 299.8 kB / 380.2 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2603, allocations: 1.125 kB / 380.2 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.569e-05/0.2604, allocations: 15.16 kB / 380.2 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.2604, allocations: 10.5 kB / 380.2 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.2608, allocations: 187.7 kB / 380.4 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/0.2624, allocations: 1.146 MB / 381.6 MB, free: 39.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.2628, allocations: 160.3 kB / 381.7 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.2629, allocations: 74.67 kB / 381.8 MB, free: 39.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.2629, allocations: 2.594 kB / 381.8 MB, free: 39.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002945/0.2632, allocations: 168.4 kB / 382 MB, free: 39.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.733e-06/0.2632, allocations: 0 / 382 MB, free: 39.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001035/0.2643, allocations: 393.6 kB / 382.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.2643, allocations: 109.7 kB / 382.5 MB, free: 39.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.2645, allocations: 221.8 kB / 382.7 MB, free: 39.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.2646, allocations: 31.83 kB / 382.7 MB, free: 39.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.2647, allocations: 187.1 kB / 382.9 MB, free: 38.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.254e-05/0.2648, allocations: 67.19 kB / 383 MB, free: 38.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.408e-05/0.2648, allocations: 5.812 kB / 383 MB, free: 38.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.2649, allocations: 332.7 kB / 383.3 MB, free: 38.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.265, allocations: 64.94 kB / 383.3 MB, free: 38.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.2652, allocations: 146.3 kB / 383.5 MB, free: 38.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.2654, allocations: 74.59 kB / 383.6 MB, free: 38.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2654, allocations: 0 / 383.6 MB, free: 38.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004383/0.2658, allocations: 274.7 kB / 383.8 MB, free: 38.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.2659, allocations: 13.83 kB / 383.8 MB, free: 38.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2659, allocations: 2.344 kB / 383.8 MB, free: 38.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000285/0.2662, allocations: 53.25 kB / 383.9 MB, free: 38.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.2664, allocations: 60.59 kB / 384 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.2675, allocations: 1.409 MB / 385.4 MB, free: 36.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.2677, allocations: 42.7 kB / 385.4 MB, free: 36.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.259e-05/0.2678, allocations: 7.5 kB / 385.4 MB, free: 36.63 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001383/0.2679, allocations: 156 kB / 385.6 MB, free: 36.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.268, allocations: 19.22 kB / 385.6 MB, free: 36.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.564e-05/0.268, allocations: 26.98 kB / 385.6 MB, free: 36.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.268, allocations: 2.438 kB / 385.6 MB, free: 36.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.268, allocations: 3.938 kB / 385.6 MB, free: 36.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.268, allocations: 1.188 kB / 385.6 MB, free: 36.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002896/0.2683, allocations: 328.5 kB / 385.9 MB, free: 36.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.2683, allocations: 4.984 kB / 385.9 MB, free: 36.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.2685, allocations: 29.77 kB / 386 MB, free: 36.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001943/0.2687, allocations: 58.45 kB / 386 MB, free: 36.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.2688, allocations: 4.938 kB / 386 MB, free: 36.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008431/0.2696, allocations: 1.322 MB / 387.4 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2696, allocations: 0 / 387.4 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006164/0.2702, allocations: 336.5 kB / 387.7 MB, free: 34.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.163e-05/0.2703, allocations: 116.6 kB / 387.8 MB, free: 34.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.2704, allocations: 6.188 kB / 387.8 MB, free: 34.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/0.2706, allocations: 21.89 kB / 387.8 MB, free: 34.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.477e-05/0.2707, allocations: 36.44 kB / 387.9 MB, free: 34.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.2707, allocations: 4.188 kB / 387.9 MB, free: 34.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000127/0.2708, allocations: 161.1 kB / 388 MB, free: 34.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2708, allocations: 1.219 kB / 388 MB, free: 34.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003794/0.2712, allocations: 78.03 kB / 388.1 MB, free: 34.23 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001285/0.2713, allocations: 101.8 kB / 388.2 MB, free: 34.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000532/0.2719, allocations: 289.1 kB / 388.5 MB, free: 33.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.2719, allocations: 1.438 kB / 388.5 MB, free: 33.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002568/0.2722, allocations: 193 kB / 388.7 MB, free: 33.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.2725, allocations: 38.36 kB / 388.7 MB, free: 33.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.2741, allocations: 0.8425 MB / 389.6 MB, free: 33.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001682/0.2743, allocations: 0.7599 MB / 390.3 MB, free: 32.26 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.762e-05/0.2744, allocations: 23.44 kB / 390.3 MB, free: 32.24 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.2744, allocations: 0 / 390.3 MB, free: 32.24 MB / 298.7 MB Notification: Performance of Templates: time 0.005083/0.2795, allocations: 4.135 MB / 394.5 MB, free: 28.11 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches