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.002103/0.002103, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.56/1.56, allocations: 205.4 MB / 222.9 MB, free: 8.941 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.0008263/0.0008264, allocations: 86.38 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005796/0.0005797, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2829, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002518/0.2854, allocations: 2.4 MB / 377.5 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.2866, allocations: 0.7316 MB / 378.2 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.2868, allocations: 5.344 kB / 378.2 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.2869, allocations: 40.03 kB / 378.3 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.2871, allocations: 78.22 kB / 378.3 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002972/0.2874, allocations: 81.48 kB / 378.4 MB, free: 42.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003219/0.2877, allocations: 352.9 kB / 378.8 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.2879, allocations: 101.8 kB / 378.9 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.2881, allocations: 111 kB / 379 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.2883, allocations: 130.7 kB / 379.1 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.392e-05/0.2883, allocations: 16.06 kB / 379.1 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.961e-05/0.2884, allocations: 20.41 kB / 379.1 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.678e-05/0.2884, allocations: 48.98 kB / 379.2 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.2886, allocations: 166.8 kB / 379.3 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.2888, allocations: 259.8 kB / 379.6 MB, free: 42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.2888, allocations: 0 / 379.6 MB, free: 42 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2888, allocations: 0 / 379.6 MB, free: 42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.2889, allocations: 0 / 379.6 MB, free: 42 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.0008184/0.2897, allocations: 0.5613 MB / 380.2 MB, free: 41.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.2898, allocations: 9.312 kB / 380.2 MB, free: 41.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.44e-05/0.2899, allocations: 34.5 kB / 380.2 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.2901, allocations: 260.5 kB / 380.5 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.074e-05/0.2902, allocations: 82.58 kB / 380.5 MB, free: 41.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.2903, allocations: 30.81 kB / 380.6 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004388/0.2907, allocations: 296.5 kB / 380.9 MB, free: 40.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.2908, allocations: 0 / 380.9 MB, free: 40.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/0.2908, allocations: 10.88 kB / 380.9 MB, free: 40.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.2908, allocations: 7.531 kB / 380.9 MB, free: 40.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003185/0.2911, allocations: 188.3 kB / 381.1 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.2926, allocations: 1.151 MB / 382.2 MB, free: 39.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003238/0.2929, allocations: 157 kB / 382.4 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.2931, allocations: 78.92 kB / 382.4 MB, free: 39.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.2931, allocations: 2.75 kB / 382.4 MB, free: 39.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002969/0.2934, allocations: 158.6 kB / 382.6 MB, free: 39.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.814e-06/0.2934, allocations: 0 / 382.6 MB, free: 39.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001045/0.2945, allocations: 399 kB / 383 MB, free: 39.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/0.2945, allocations: 109.5 kB / 383.1 MB, free: 39.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.2947, allocations: 233.7 kB / 383.3 MB, free: 39.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.2948, allocations: 32.23 kB / 383.4 MB, free: 38.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.955e-05/0.2949, allocations: 174.9 kB / 383.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.2949, allocations: 68.97 kB / 383.6 MB, free: 38.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.397e-05/0.2949, allocations: 5.062 kB / 383.6 MB, free: 38.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.71e-05/0.295, allocations: 339.7 kB / 383.9 MB, free: 38.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.2951, allocations: 63.25 kB / 384 MB, free: 38.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.2953, allocations: 150.3 kB / 384.1 MB, free: 38.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.2956, allocations: 183.9 kB / 384.3 MB, free: 38.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2956, allocations: 0 / 384.3 MB, free: 38.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004362/0.296, allocations: 274.8 kB / 384.6 MB, free: 37.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.296, allocations: 10.16 kB / 384.6 MB, free: 37.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.2961, allocations: 6.797 kB / 384.6 MB, free: 37.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002645/0.2963, allocations: 55.28 kB / 384.7 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.2966, allocations: 52.72 kB / 384.7 MB, free: 37.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009908/0.2976, allocations: 1.416 MB / 386.1 MB, free: 36.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.2978, allocations: 38.23 kB / 386.2 MB, free: 36.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.2979, allocations: 9.219 kB / 386.2 MB, free: 36.45 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.0001282/0.298, allocations: 147.4 kB / 386.3 MB, free: 36.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.68e-05/0.298, allocations: 27.09 kB / 386.3 MB, free: 36.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.213e-05/0.2981, allocations: 31.08 kB / 386.4 MB, free: 36.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2981, allocations: 2.188 kB / 386.4 MB, free: 36.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2981, allocations: 1.156 kB / 386.4 MB, free: 36.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2981, allocations: 0 / 386.4 MB, free: 36.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002726/0.2984, allocations: 321.2 kB / 386.7 MB, free: 35.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2984, allocations: 0 / 386.7 MB, free: 35.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/0.2986, allocations: 42.39 kB / 386.7 MB, free: 35.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001758/0.2987, allocations: 54.31 kB / 386.8 MB, free: 35.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.2988, allocations: 5.281 kB / 386.8 MB, free: 35.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008196/0.2996, allocations: 1.324 MB / 388.1 MB, free: 34.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2996, allocations: 0.9375 kB / 388.1 MB, free: 34.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006219/0.3002, allocations: 328.2 kB / 388.4 MB, free: 34.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.602e-05/0.3003, allocations: 117.1 kB / 388.5 MB, free: 34.22 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.3004, allocations: 10.38 kB / 388.6 MB, free: 34.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.3006, allocations: 20.64 kB / 388.6 MB, free: 34.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.214e-05/0.3007, allocations: 33.41 kB / 388.6 MB, free: 34.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.3007, allocations: 12.19 kB / 388.6 MB, free: 34.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001408/0.3008, allocations: 161.2 kB / 388.8 MB, free: 34.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3008, allocations: 0 / 388.8 MB, free: 34.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000405/0.3012, allocations: 78.94 kB / 388.9 MB, free: 34.04 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.0001479/0.3014, allocations: 105.6 kB / 389 MB, free: 33.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005266/0.3019, allocations: 282.1 kB / 389.2 MB, free: 33.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.686e-06/0.302, allocations: 4.062 kB / 389.2 MB, free: 33.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.3022, allocations: 191.6 kB / 389.4 MB, free: 33.58 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.3025, allocations: 40.3 kB / 389.5 MB, free: 33.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.304, allocations: 0.8437 MB / 390.3 MB, free: 32.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/0.3041, allocations: 0.7599 MB / 391.1 MB, free: 31.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.561e-05/0.3042, allocations: 19.44 kB / 391.1 MB, free: 31.86 MB / 298.7 MB Notification: Performance of SimCode: time 6.62e-07/0.3042, allocations: 0 / 391.1 MB, free: 31.86 MB / 298.7 MB Notification: Performance of Templates: time 0.005224/0.3094, allocations: 4.125 MB / 395.2 MB, free: 27.74 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