Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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 trunk/package.mo", uses=false) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001504/0.001504, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001944/0.001944, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 59.91 kB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2281, allocations: 50.56 MB / 409.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003794/0.2319, allocations: 2.87 MB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.2332, allocations: 0.7556 MB / 413.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.2334, allocations: 7.938 kB / 413.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.2336, allocations: 59.44 kB / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001556/0.2337, allocations: 83.19 kB / 413.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.234, allocations: 111.8 kB / 413.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003586/0.2344, allocations: 374.4 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.2346, allocations: 127.2 kB / 414.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.2348, allocations: 131.5 kB / 414.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001953/0.235, allocations: 159.3 kB / 414.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.511e-05/0.235, allocations: 36 kB / 414.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.436e-05/0.2351, allocations: 28 kB / 414.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.496e-05/0.2352, allocations: 75.75 kB / 414.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.2353, allocations: 155.3 kB / 414.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.2357, allocations: 363.9 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2357, allocations: 0 / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2357, allocations: 0 / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.2357, allocations: 0 / 415.2 MB, free: 12.23 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009849/0.2367, allocations: 0.6056 MB / 415.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2367, allocations: 12.03 kB / 415.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.123e-05/0.2368, allocations: 32.56 kB / 415.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003656/0.2372, allocations: 268.4 kB / 416.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.134e-05/0.2373, allocations: 80.61 kB / 416.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.627e-05/0.2373, allocations: 32.38 kB / 416.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004637/0.2378, allocations: 301.8 kB / 416.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.2378, allocations: 0 / 416.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.2378, allocations: 16 kB / 416.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.2379, allocations: 8 kB / 416.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003202/0.2382, allocations: 190.1 kB / 416.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.2398, allocations: 1.123 MB / 417.9 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.24, allocations: 154.6 kB / 418 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.2402, allocations: 84.81 kB / 418.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.2402, allocations: 3.938 kB / 418.1 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002371/0.2404, allocations: 160.8 kB / 418.3 MB, free: 8.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.2405, allocations: 0 / 418.3 MB, free: 8.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001028/0.2415, allocations: 387.1 kB / 418.7 MB, free: 8.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.095e-05/0.2416, allocations: 106.8 kB / 418.8 MB, free: 8.422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.2418, allocations: 228.9 kB / 419 MB, free: 8.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.2418, allocations: 33.7 kB / 419 MB, free: 8.148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.2419, allocations: 180.2 kB / 419.2 MB, free: 7.969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.629e-05/0.242, allocations: 67.08 kB / 419.3 MB, free: 7.902 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.893e-05/0.2421, allocations: 57.61 kB / 419.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.2422, allocations: 346.8 kB / 419.7 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.2424, allocations: 63.97 kB / 419.7 MB, free: 7.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.2425, allocations: 145.5 kB / 419.9 MB, free: 7.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.2428, allocations: 196.2 kB / 420.1 MB, free: 7.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2428, allocations: 0 / 420.1 MB, free: 7.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004236/0.2433, allocations: 276.4 kB / 420.3 MB, free: 6.762 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.2433, allocations: 6.969 kB / 420.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.2433, allocations: 0 / 420.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002672/0.2436, allocations: 57.03 kB / 420.4 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.2438, allocations: 51.92 kB / 420.4 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001366/0.2452, allocations: 1.568 MB / 422 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/0.2454, allocations: 31.86 kB / 422 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.2454, allocations: 12 kB / 422.1 MB, free: 4.898 MB / 334.1 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,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * 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 (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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001439/0.2456, allocations: 157.7 kB / 422.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.676e-05/0.2456, allocations: 23.72 kB / 422.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.631e-05/0.2457, allocations: 30.17 kB / 422.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.2457, allocations: 4 kB / 422.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.2457, allocations: 0 / 422.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.2457, allocations: 0 / 422.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002996/0.246, allocations: 317.3 kB / 422.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.246, allocations: 0 / 422.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.2462, allocations: 39.91 kB / 422.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000189/0.2464, allocations: 52.81 kB / 422.7 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.2464, allocations: 7.984 kB / 422.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001149/0.2476, allocations: 1.422 MB / 424.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.2476, allocations: 0 / 424.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006162/0.2482, allocations: 325.2 kB / 424.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.366e-05/0.2483, allocations: 112.8 kB / 424.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.2484, allocations: 8 kB / 424.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.2486, allocations: 19.92 kB / 424.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.948e-05/0.2486, allocations: 31.89 kB / 424.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.2487, allocations: 20.05 kB / 424.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000127/0.2488, allocations: 156.5 kB / 424.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2488, allocations: 0 / 424.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003706/0.2492, allocations: 79.75 kB / 424.8 MB, free: 1.883 MB / 334.1 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 (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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001352/0.2493, allocations: 110.9 kB / 424.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005467/0.2499, allocations: 290.8 kB / 425.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2499, allocations: 4.062 kB / 425.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002654/0.2502, allocations: 190.6 kB / 425.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.2505, allocations: 36.34 kB / 425.5 MB, free: 1.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001525/0.252, allocations: 0.6725 MB / 426.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.2523, allocations: 0.7634 MB / 426.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.19e-05/0.2524, allocations: 19.44 kB / 426.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2524, allocations: 0 / 426.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of Templates: time 0.006016/0.2584, allocations: 4.204 MB / 431.1 MB, free: 11.52 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches