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.0009044/0.0009044, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0008451/0.0008451, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 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.9781/0.9781, allocations: 173.3 MB / 201.1 MB, free: 9 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.522e-06/1.522e-06, allocations: 0 / 268 MB, free: 6.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.606e-05/2.758e-05, allocations: 10.11 kB / 268 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003303/0.003331, allocations: 3.131 MB / 271.1 MB, free: 3.121 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.00452, allocations: 0.7321 MB / 271.9 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.004665, allocations: 8 kB / 271.9 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.004818, allocations: 63.36 kB / 272 MB, free: 2.312 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.004988, allocations: 114.9 kB / 272.1 MB, free: 2.199 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.005319, allocations: 111.7 kB / 272.2 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.005664, allocations: 425.9 kB / 272.6 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.00584, allocations: 104.3 kB / 272.7 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002687/0.006109, allocations: 247.5 kB / 272.9 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001653/0.006274, allocations: 127.6 kB / 273.1 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.501e-05/0.006319, allocations: 36 kB / 273.1 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.934e-05/0.006358, allocations: 36 kB / 273.1 MB, free: 1.129 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.272e-05/0.006411, allocations: 83.67 kB / 273.2 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.006512, allocations: 123.7 kB / 273.3 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002673/0.006779, allocations: 290.9 kB / 273.6 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.006782, allocations: 0 / 273.6 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.006783, allocations: 0 / 273.6 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.006788, allocations: 0 / 273.6 MB, free: 0.6406 MB / 250.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.0007575/0.007546, allocations: 0.6753 MB / 274.3 MB, free: 15.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.007584, allocations: 12.03 kB / 274.3 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.861e-05/0.007673, allocations: 64.7 kB / 274.4 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.007931, allocations: 224.8 kB / 274.6 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.909e-05/0.008021, allocations: 132 kB / 274.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.965e-05/0.00806, allocations: 36.36 kB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.008432, allocations: 346.7 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.008442, allocations: 192 / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.008468, allocations: 20.12 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.008478, allocations: 8 kB / 275.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.008664, allocations: 127.8 kB / 275.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.009894, allocations: 1.346 MB / 276.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000215/0.01011, allocations: 139 kB / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.37e-05/0.01018, allocations: 58.7 kB / 276.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.0102, allocations: 8 kB / 276.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.01038, allocations: 202.4 kB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.01038, allocations: 0 / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005546/0.01094, allocations: 249.3 kB / 277.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.01099, allocations: 106.8 kB / 277.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.01115, allocations: 284.2 kB / 277.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.01117, allocations: 33.7 kB / 277.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.01127, allocations: 262.9 kB / 277.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.237e-05/0.01132, allocations: 67.45 kB / 278 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.922e-05/0.01139, allocations: 67.67 kB / 278 MB, free: 11.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.01151, allocations: 0.5078 MB / 278.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.883e-05/0.01157, allocations: 44.62 kB / 278.6 MB, free: 11.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.01171, allocations: 228.5 kB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.0119, allocations: 225.5 kB / 279 MB, free: 10.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.0119, allocations: 0 / 279 MB, free: 10.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003413/0.01225, allocations: 287.3 kB / 279.3 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.01226, allocations: 7.938 kB / 279.3 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.01227, allocations: 4 kB / 279.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001638/0.01243, allocations: 51.83 kB / 279.4 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.01258, allocations: 67.91 kB / 279.4 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009256/0.01351, allocations: 1.969 MB / 281.4 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.01364, allocations: 35.91 kB / 281.4 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.01365, allocations: 23.92 kB / 281.5 MB, free: 8.184 MB / 266.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.0001094/0.01376, allocations: 180.5 kB / 281.6 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.01379, allocations: 31.86 kB / 281.7 MB, free: 7.965 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.521e-05/0.01382, allocations: 26.27 kB / 281.7 MB, free: 7.938 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.01382, allocations: 4 kB / 281.7 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-06/0.01382, allocations: 0 / 281.7 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.01382, allocations: 3.938 kB / 281.7 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001774/0.014, allocations: 240.3 kB / 281.9 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.014, allocations: 4 kB / 281.9 MB, free: 7.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.01411, allocations: 39.97 kB / 282 MB, free: 7.617 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.899e-05/0.01421, allocations: 39.64 kB / 282 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.01422, allocations: 4 kB / 282 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007348/0.01496, allocations: 1.767 MB / 283.8 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01496, allocations: 0 / 283.8 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003157/0.01527, allocations: 266.8 kB / 284.1 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.888e-05/0.01533, allocations: 51.66 kB / 284.1 MB, free: 5.348 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.01535, allocations: 0 / 284.1 MB, free: 5.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.008e-05/0.01542, allocations: 24.08 kB / 284.1 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.291e-05/0.01549, allocations: 27.94 kB / 284.2 MB, free: 5.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.0155, allocations: 8 kB / 284.2 MB, free: 5.289 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.763e-05/0.0156, allocations: 193.1 kB / 284.3 MB, free: 5.102 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0156, allocations: 0 / 284.3 MB, free: 5.102 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000263/0.01586, allocations: 91.78 kB / 284.4 MB, free: 5.012 MB / 266.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.0001039/0.01597, allocations: 107.2 kB / 284.5 MB, free: 4.895 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000385/0.01635, allocations: 321.3 kB / 284.9 MB, free: 4.559 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01635, allocations: 0 / 284.9 MB, free: 4.559 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.01652, allocations: 241.7 kB / 285.1 MB, free: 4.301 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001941/0.01671, allocations: 28.42 kB / 285.1 MB, free: 4.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.01786, allocations: 0.6161 MB / 285.7 MB, free: 3.625 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.022e-05/0.01791, allocations: 92.3 kB / 285.8 MB, free: 3.516 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.928e-05/0.01798, allocations: 22.28 kB / 285.8 MB, free: 3.496 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.848e-05/0.01803, allocations: 28.5 kB / 285.9 MB, free: 3.469 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01803, allocations: 3.938 kB / 285.9 MB, free: 3.465 MB / 266.7 MB Notification: Performance of Templates: time 0.00616/0.02419, allocations: 3.081 MB / 289 MB, free: 432 kB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8964132708497345]