Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 211.5 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.523/1.523, allocations: 230.6 MB / 258.2 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 47.94 kB / 379 MB, free: 2.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2174, allocations: 53.37 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004283/0.2217, allocations: 2.922 MB / 435.3 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.2233, allocations: 0.7825 MB / 436.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.2235, allocations: 7.938 kB / 436.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.2237, allocations: 63.36 kB / 436.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.2238, allocations: 103 kB / 436.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003787/0.2242, allocations: 127.8 kB / 436.3 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004459/0.2247, allocations: 422.1 kB / 436.8 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.2249, allocations: 92.31 kB / 436.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.2251, allocations: 171.4 kB / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.2253, allocations: 143.2 kB / 437.2 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.584e-05/0.2254, allocations: 36 kB / 437.2 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.578e-05/0.2255, allocations: 44 kB / 437.2 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.571e-05/0.2256, allocations: 79.69 kB / 437.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.2257, allocations: 155.3 kB / 437.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004782/0.2262, allocations: 433.2 kB / 437.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.2262, allocations: 4 kB / 437.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2262, allocations: 0 / 437.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.2262, allocations: 0 / 437.9 MB, free: 1.145 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001047/0.2273, allocations: 0.587 MB / 438.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.2273, allocations: 8.031 kB / 438.5 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001859/0.2275, allocations: 52.66 kB / 438.5 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.2279, allocations: 227.5 kB / 438.8 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.228, allocations: 132 kB / 438.9 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.137e-05/0.228, allocations: 28.38 kB / 438.9 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006252/0.2287, allocations: 402.3 kB / 439.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.2287, allocations: 0 / 439.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.2e-05/0.2287, allocations: 12 kB / 439.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.2287, allocations: 8 kB / 439.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.2292, allocations: 226.4 kB / 439.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.231, allocations: 1.19 MB / 440.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003364/0.2313, allocations: 154.6 kB / 440.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.2315, allocations: 83.41 kB / 441 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.2315, allocations: 4 kB / 441 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003173/0.2318, allocations: 213.2 kB / 441.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.572e-06/0.2318, allocations: 0 / 441.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001089/0.2329, allocations: 329.9 kB / 441.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.559e-05/0.233, allocations: 110.8 kB / 441.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002505/0.2332, allocations: 248.9 kB / 441.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.2333, allocations: 37.7 kB / 441.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.2334, allocations: 208.2 kB / 442.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.248e-05/0.2335, allocations: 67.5 kB / 442.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.2336, allocations: 69.84 kB / 442.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2337, allocations: 338.8 kB / 442.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/0.2339, allocations: 80.56 kB / 442.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002731/0.2342, allocations: 224.9 kB / 442.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003707/0.2345, allocations: 239.5 kB / 443.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2345, allocations: 0 / 443.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006931/0.2352, allocations: 332.4 kB / 443.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.2352, allocations: 11.94 kB / 443.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2353, allocations: 4 kB / 443.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000267/0.2355, allocations: 61.16 kB / 443.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002568/0.2358, allocations: 63.91 kB / 443.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.2372, allocations: 1.438 MB / 445 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.2374, allocations: 43.77 kB / 445 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.2375, allocations: 15.98 kB / 445.1 MB, free: 9.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001679/0.2376, allocations: 153.7 kB / 445.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.35e-05/0.2377, allocations: 35.8 kB / 445.2 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.383e-05/0.2377, allocations: 30.27 kB / 445.3 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2377, allocations: 4 kB / 445.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2377, allocations: 4 kB / 445.3 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2377, allocations: 4 kB / 445.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002784/0.238, allocations: 233.2 kB / 445.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.238, allocations: 0 / 445.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001849/0.2382, allocations: 31.98 kB / 445.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001898/0.2384, allocations: 52.81 kB / 445.6 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.2384, allocations: 4 kB / 445.6 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.2396, allocations: 1.299 MB / 446.9 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2396, allocations: 0 / 446.9 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007364/0.2403, allocations: 353.7 kB / 447.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.644e-05/0.2404, allocations: 39.8 kB / 447.3 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.2405, allocations: 8 kB / 447.3 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.2406, allocations: 19.98 kB / 447.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.116e-05/0.2407, allocations: 31.94 kB / 447.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.2407, allocations: 4 kB / 447.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001609/0.2409, allocations: 168.5 kB / 447.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2409, allocations: 0 / 447.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004006/0.2413, allocations: 95.78 kB / 447.6 MB, free: 6.766 MB / 350.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001283/0.2414, allocations: 112.5 kB / 447.7 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006175/0.242, allocations: 306.4 kB / 448 MB, free: 6.332 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.242, allocations: 3.938 kB / 448 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003154/0.2424, allocations: 195.3 kB / 448.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.2426, allocations: 32.42 kB / 448.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.2442, allocations: 0.7078 MB / 448.9 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001598/0.2443, allocations: 164.8 kB / 449.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.855e-05/0.2444, allocations: 23.42 kB / 449.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2444, allocations: 0 / 449.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of Templates: time 0.007282/0.2517, allocations: 4.717 MB / 453.8 MB, free: 452 kB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.627475541085005]