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.001617/0.001617, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.002046/0.002046, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.399/1.399, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.001621/0.001621, allocations: 48.06 kB / 379 MB, free: 2.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2288, allocations: 53.36 MB / 432.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00478/0.2336, allocations: 3.182 MB / 435.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.2354, allocations: 0.8256 MB / 436.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002978/0.2357, allocations: 11.94 kB / 436.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.2359, allocations: 59.42 kB / 436.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003338/0.2363, allocations: 107 kB / 436.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004677/0.2367, allocations: 123.7 kB / 436.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005695/0.2373, allocations: 418.2 kB / 437.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.2375, allocations: 100.3 kB / 437.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.2379, allocations: 167.5 kB / 437.4 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002933/0.2382, allocations: 183.1 kB / 437.6 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.995e-05/0.2382, allocations: 36 kB / 437.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.593e-05/0.2383, allocations: 40 kB / 437.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.081e-05/0.2384, allocations: 79.73 kB / 437.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002168/0.2386, allocations: 187.1 kB / 437.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005483/0.2392, allocations: 427.5 kB / 438.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2392, allocations: 0 / 438.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2392, allocations: 0 / 438.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.2392, allocations: 4 kB / 438.3 MB, free: 0.9922 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.001146/0.2403, allocations: 0.5909 MB / 438.9 MB, free: 376 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.2404, allocations: 8.031 kB / 438.9 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.2406, allocations: 56.64 kB / 439 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004413/0.241, allocations: 223.5 kB / 439.2 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.2412, allocations: 136 kB / 439.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.362e-05/0.2412, allocations: 36.38 kB / 439.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006135/0.2418, allocations: 342.8 kB / 439.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.2418, allocations: 0 / 439.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.2419, allocations: 12 kB / 439.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.2419, allocations: 8 kB / 439.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004539/0.2423, allocations: 222.5 kB / 439.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.2444, allocations: 1.318 MB / 441.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003524/0.2447, allocations: 158.6 kB / 441.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.2449, allocations: 88.7 kB / 441.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.2449, allocations: 3.984 kB / 441.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002821/0.2452, allocations: 155.8 kB / 441.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.2452, allocations: 0 / 441.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001114/0.2463, allocations: 332 kB / 442 MB, free: 13.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.485e-05/0.2464, allocations: 110.7 kB / 442.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/0.2467, allocations: 269.8 kB / 442.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.2467, allocations: 29.7 kB / 442.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.2469, allocations: 212.3 kB / 442.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.042e-05/0.247, allocations: 79.36 kB / 442.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-05/0.247, allocations: 58.03 kB / 442.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.2472, allocations: 338.8 kB / 443 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.2474, allocations: 76.61 kB / 443.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/0.2476, allocations: 177.5 kB / 443.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.248, allocations: 239.5 kB / 443.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.248, allocations: 4 kB / 443.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007241/0.2487, allocations: 340.6 kB / 443.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.2488, allocations: 11.98 kB / 443.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2488, allocations: 0 / 443.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002594/0.249, allocations: 56.81 kB / 443.9 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002578/0.2493, allocations: 63.84 kB / 444 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/0.2508, allocations: 1.464 MB / 445.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.2511, allocations: 51.72 kB / 445.5 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.2511, allocations: 8 kB / 445.5 MB, free: 9.305 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.0001715/0.2513, allocations: 145.8 kB / 445.7 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.501e-05/0.2513, allocations: 31.92 kB / 445.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.898e-05/0.2514, allocations: 38.19 kB / 445.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.2514, allocations: 4 kB / 445.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.2514, allocations: 0 / 445.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2514, allocations: 0 / 445.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003714/0.2518, allocations: 312.4 kB / 446 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.2518, allocations: 4 kB / 446 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.252, allocations: 39.92 kB / 446.1 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001902/0.2522, allocations: 56.75 kB / 446.1 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.2522, allocations: 7.984 kB / 446.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001281/0.2535, allocations: 1.318 MB / 447.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2535, allocations: 0 / 447.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000733/0.2542, allocations: 353.8 kB / 447.8 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.481e-05/0.2543, allocations: 35.83 kB / 447.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.117e-05/0.2543, allocations: 8 kB / 447.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.2545, allocations: 15.98 kB / 447.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.307e-05/0.2546, allocations: 35.88 kB / 447.9 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.2546, allocations: 8.062 kB / 447.9 MB, free: 6.723 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001912/0.2548, allocations: 185.2 kB / 448.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2548, allocations: 0 / 448.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003859/0.2552, allocations: 103.7 kB / 448.2 MB, free: 6.438 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.0001305/0.2553, allocations: 103.2 kB / 448.3 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006434/0.2559, allocations: 306.7 kB / 448.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2559, allocations: 0 / 448.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003286/0.2563, allocations: 198.5 kB / 448.8 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.2565, allocations: 30.56 kB / 448.8 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.2582, allocations: 0.7138 MB / 449.5 MB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/0.2586, allocations: 0.7714 MB / 450.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.095e-05/0.2587, allocations: 27.42 kB / 450.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2587, allocations: 4 kB / 450.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of Templates: time 0.007745/0.2664, allocations: 4.699 MB / 455 MB, free: 15.52 MB / 366.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.210374161833897]