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.002042/0.002042, allocations: 106.8 kB / 21.2 MB, free: 0.6406 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.002054/0.002054, allocations: 217.1 kB / 24.49 MB, free: 3.93 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.454/1.454, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.001552/0.001552, allocations: 51.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2174/0.2189, allocations: 53.36 MB / 432.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004317/0.2233, allocations: 2.932 MB / 435.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.2246, allocations: 0.7702 MB / 436.1 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.2248, allocations: 15.88 kB / 436.1 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001797/0.2249, allocations: 63.42 kB / 436.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.2251, allocations: 103 kB / 436.2 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003761/0.2255, allocations: 123.7 kB / 436.4 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000438/0.226, allocations: 418.2 kB / 436.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.2262, allocations: 104.3 kB / 436.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002585/0.2264, allocations: 175.3 kB / 437 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002227/0.2266, allocations: 171.2 kB / 437.2 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.366e-05/0.2267, allocations: 36 kB / 437.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.864e-05/0.2268, allocations: 40 kB / 437.3 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.469e-05/0.2269, allocations: 79.73 kB / 437.4 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.227, allocations: 151.3 kB / 437.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000482/0.2275, allocations: 437.9 kB / 437.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2275, allocations: 0 / 437.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2275, allocations: 0 / 437.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2275, allocations: 4 kB / 437.9 MB, free: 1.141 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.001099/0.2286, allocations: 0.5909 MB / 438.5 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.2286, allocations: 8.031 kB / 438.5 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002151/0.2289, allocations: 52.64 kB / 438.6 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.2292, allocations: 227.5 kB / 438.8 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/0.2294, allocations: 136 kB / 438.9 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.775e-05/0.2294, allocations: 32.38 kB / 439 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006524/0.2301, allocations: 386.4 kB / 439.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.2301, allocations: 7.984 kB / 439.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.2301, allocations: 12 kB / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.2302, allocations: 8 kB / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000443/0.2306, allocations: 218.5 kB / 439.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.2325, allocations: 1.193 MB / 440.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000357/0.2329, allocations: 162.5 kB / 440.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.233, allocations: 82.89 kB / 441 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.233, allocations: 0 / 441 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003214/0.2334, allocations: 209.2 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.2334, allocations: 0 / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001149/0.2345, allocations: 333.3 kB / 441.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.803e-05/0.2346, allocations: 110.8 kB / 441.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002608/0.2349, allocations: 248.9 kB / 441.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.2349, allocations: 25.7 kB / 441.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/0.235, allocations: 216.2 kB / 442.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.632e-05/0.2351, allocations: 75.47 kB / 442.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.2352, allocations: 65.92 kB / 442.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.2354, allocations: 342.8 kB / 442.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.2355, allocations: 76.62 kB / 442.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.2358, allocations: 228.9 kB / 442.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003834/0.2362, allocations: 235.5 kB / 443.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2362, allocations: 0 / 443.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007297/0.2369, allocations: 336.6 kB / 443.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.237, allocations: 11.94 kB / 443.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.237, allocations: 4 kB / 443.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000267/0.2372, allocations: 52.97 kB / 443.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002736/0.2375, allocations: 67.84 kB / 443.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.239, allocations: 1.438 MB / 445 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002661/0.2392, allocations: 51.89 kB / 445.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.2392, allocations: 12 kB / 445.1 MB, free: 9.469 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.0001596/0.2394, allocations: 153.7 kB / 445.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.224e-05/0.2394, allocations: 27.81 kB / 445.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.352e-05/0.2395, allocations: 30.27 kB / 445.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2395, allocations: 0 / 445.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2395, allocations: 0 / 445.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.709e-05/0.2396, allocations: 39.77 kB / 445.3 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.137e-05/0.2396, allocations: 8 kB / 445.4 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.2398, allocations: 19.98 kB / 445.4 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.2399, allocations: 19.95 kB / 445.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006601/0.2405, allocations: 297.6 kB / 445.7 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006045/0.2412, allocations: 447.9 kB / 446.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001529/0.2413, allocations: 73.69 kB / 446.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001545/0.2415, allocations: 168.5 kB / 446.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of Backend: time 3.51e-07/0.2415, allocations: 0 / 446.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008165/0.2423, allocations: 324.8 kB / 446.7 MB, free: 7.84 MB / 350.1 MB Notification: Performance of SimCode: time 0.001237/0.2435, allocations: 1.09 MB / 447.8 MB, free: 6.699 MB / 350.1 MB Notification: Performance of Templates: time 0.008065/0.2516, allocations: 3.763 MB / 451.5 MB, free: 2.984 MB / 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: 4.441226335002284]