Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008919/0.0008919, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003738/0.003738, allocations: 145.8 kB / 24.68 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8037/0.8037, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.33e-05/2.519e-05, allocations: 6.219 kB / 319.7 MB, free: 5.836 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004258/0.004283, allocations: 2.901 MB / 322.6 MB, free: 2.918 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.005466, allocations: 0.7244 MB / 323.3 MB, free: 2.188 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.005625, allocations: 4 kB / 323.3 MB, free: 2.184 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.005815, allocations: 67.36 kB / 323.4 MB, free: 2.117 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000192/0.006007, allocations: 110.9 kB / 323.5 MB, free: 2.008 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003539/0.006361, allocations: 111.7 kB / 323.6 MB, free: 1.898 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004121/0.006773, allocations: 426 kB / 324 MB, free: 1.48 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000348/0.007121, allocations: 96.36 kB / 324.1 MB, free: 1.383 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002965/0.007417, allocations: 247.4 kB / 324.4 MB, free: 1.141 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.007615, allocations: 131.7 kB / 324.5 MB, free: 1.012 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.034e-05/0.007676, allocations: 32 kB / 324.5 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.696e-05/0.007733, allocations: 36 kB / 324.6 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.374e-05/0.007806, allocations: 83.66 kB / 324.6 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.007944, allocations: 127.7 kB / 324.8 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004404/0.008384, allocations: 438.5 kB / 325.2 MB, free: 316 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.594e-06/0.008387, allocations: 0 / 325.2 MB, free: 316 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.008388, allocations: 0 / 325.2 MB, free: 316 kB / 282.7 MB Notification: Performance of Transformations before backend: time 6.291e-06/0.008394, allocations: 0 / 325.2 MB, free: 316 kB / 282.7 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.0009497/0.009344, allocations: 0.5824 MB / 325.8 MB, free: 15.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.009381, allocations: 12.03 kB / 325.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.381e-05/0.009464, allocations: 40.7 kB / 325.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/0.009826, allocations: 218.8 kB / 326 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.009931, allocations: 132 kB / 326.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.758e-05/0.009988, allocations: 40.36 kB / 326.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/0.01055, allocations: 390.7 kB / 326.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.01056, allocations: 192 / 326.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.58e-05/0.0106, allocations: 16.12 kB / 326.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.01061, allocations: 8 kB / 326.6 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004375/0.01105, allocations: 222.4 kB / 326.8 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.01295, allocations: 1.179 MB / 328 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003233/0.01327, allocations: 154.6 kB / 328.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.01342, allocations: 84.83 kB / 328.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.01344, allocations: 4 kB / 328.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002955/0.01374, allocations: 216.5 kB / 328.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.01374, allocations: 7.938 kB / 328.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009461/0.01469, allocations: 318.2 kB / 328.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.837e-05/0.01474, allocations: 106.8 kB / 328.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.01497, allocations: 245.8 kB / 329.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.01499, allocations: 29.64 kB / 329.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.01512, allocations: 208.3 kB / 329.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.748e-05/0.01518, allocations: 75.36 kB / 329.4 MB, free: 11.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.375e-05/0.01527, allocations: 62.03 kB / 329.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.01537, allocations: 338.8 kB / 329.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.01553, allocations: 84.55 kB / 329.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002295/0.01576, allocations: 232.9 kB / 330.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.01609, allocations: 235.5 kB / 330.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.0161, allocations: 0 / 330.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006378/0.01673, allocations: 340.7 kB / 330.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.01675, allocations: 11.98 kB / 330.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.01676, allocations: 0 / 330.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002471/0.01701, allocations: 56.75 kB / 330.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.01724, allocations: 63.91 kB / 330.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.01843, allocations: 1.445 MB / 332.3 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.01863, allocations: 43.77 kB / 332.3 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.01866, allocations: 19.94 kB / 332.3 MB, free: 8.66 MB / 298.7 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.0001499/0.01881, allocations: 157.8 kB / 332.5 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.764e-05/0.01885, allocations: 27.84 kB / 332.5 MB, free: 8.469 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.161e-05/0.01889, allocations: 26.27 kB / 332.5 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.01889, allocations: 4 kB / 332.5 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.01889, allocations: 0 / 332.5 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.0189, allocations: 3.984 kB / 332.5 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002527/0.01915, allocations: 237.1 kB / 332.8 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.01915, allocations: 0 / 332.8 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001747/0.01933, allocations: 35.97 kB / 332.8 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001808/0.01951, allocations: 48.83 kB / 332.9 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.01953, allocations: 7.984 kB / 332.9 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.02056, allocations: 1.299 MB / 334.2 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.02056, allocations: 0 / 334.2 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006467/0.02121, allocations: 348.7 kB / 334.5 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.31e-05/0.02129, allocations: 35.75 kB / 334.5 MB, free: 6.285 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.402e-05/0.02132, allocations: 8 kB / 334.6 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003917/0.02172, allocations: 23.97 kB / 334.6 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-05/0.0218, allocations: 28.08 kB / 334.6 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.02181, allocations: 8 kB / 334.6 MB, free: 6.219 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001403/0.02195, allocations: 169.2 kB / 334.8 MB, free: 6.059 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.02195, allocations: 0 / 334.8 MB, free: 6.059 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000405/0.02236, allocations: 87.84 kB / 334.9 MB, free: 5.973 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: 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.0001298/0.02249, allocations: 111.1 kB / 335 MB, free: 5.852 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005542/0.02304, allocations: 310.7 kB / 335.3 MB, free: 5.535 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.02305, allocations: 0 / 335.3 MB, free: 5.535 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002594/0.0233, allocations: 190.6 kB / 335.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.02356, allocations: 36.42 kB / 335.5 MB, free: 5.301 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.02481, allocations: 0.638 MB / 336.1 MB, free: 4.629 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.02494, allocations: 164.7 kB / 336.3 MB, free: 4.445 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.49e-05/0.02501, allocations: 24.5 kB / 336.3 MB, free: 4.422 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.02501, allocations: 0 / 336.3 MB, free: 4.422 MB / 298.7 MB Notification: Performance of Templates: time 0.006033/0.03104, allocations: 4.678 MB / 341 MB, free: 15.75 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.205773899331689]