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.0008589/0.0008589, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.003662/0.003662, allocations: 163 kB / 24.7 MB, free: 9.426 MB / 18.57 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 0.8656/0.8656, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.362e-06/1.362e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.332e-05/2.469e-05, allocations: 2.281 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002709/0.002733, allocations: 2.94 MB / 328.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008895/0.003623, allocations: 0.7905 MB / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.003735, allocations: 4 kB / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.003873, allocations: 67.42 kB / 329.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.003991, allocations: 110.9 kB / 329.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003129/0.004304, allocations: 119.7 kB / 329.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005465/0.00485, allocations: 441.9 kB / 330.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.004998, allocations: 84.39 kB / 330.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.005226, allocations: 255.4 kB / 330.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.005358, allocations: 123.7 kB / 330.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/0.005395, allocations: 36 kB / 330.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.79e-05/0.005453, allocations: 39.98 kB / 330.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.349e-05/0.005496, allocations: 83.67 kB / 330.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.219e-05/0.005578, allocations: 131.7 kB / 331 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003137/0.005892, allocations: 446.5 kB / 331.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005894, allocations: 0 / 331.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.005895, allocations: 0 / 331.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.005899, allocations: 0 / 331.5 MB, free: 9.758 MB / 298.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.0006647/0.006564, allocations: 0.5822 MB / 332.1 MB, free: 9.145 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.006599, allocations: 16.02 kB / 332.1 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.006724, allocations: 52.66 kB / 332.1 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.006985, allocations: 230.8 kB / 332.3 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.073e-05/0.007066, allocations: 128 kB / 332.5 MB, free: 8.676 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.007104, allocations: 32.38 kB / 332.5 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003642/0.007468, allocations: 390.7 kB / 332.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.007482, allocations: 8.125 kB / 332.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.007505, allocations: 16.12 kB / 332.9 MB, free: 8.211 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.007512, allocations: 8 kB / 332.9 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002457/0.007758, allocations: 214.5 kB / 333.1 MB, free: 7.992 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.008783, allocations: 1.191 MB / 334.3 MB, free: 6.723 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.008995, allocations: 162.4 kB / 334.5 MB, free: 6.555 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.077e-05/0.009086, allocations: 88.8 kB / 334.6 MB, free: 6.465 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.0091, allocations: 0 / 334.6 MB, free: 6.465 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001971/0.009297, allocations: 209.2 kB / 334.8 MB, free: 6.227 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 9.62e-07/0.009298, allocations: 0 / 334.8 MB, free: 6.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006013/0.0099, allocations: 329.5 kB / 335.1 MB, free: 5.898 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.009945, allocations: 106.8 kB / 335.2 MB, free: 5.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.01009, allocations: 245.8 kB / 335.4 MB, free: 5.523 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.01011, allocations: 29.7 kB / 335.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.651e-05/0.01021, allocations: 212.2 kB / 335.7 MB, free: 5.273 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.96e-05/0.01025, allocations: 75.41 kB / 335.7 MB, free: 5.199 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.118e-05/0.01031, allocations: 65.98 kB / 335.8 MB, free: 5.129 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.963e-05/0.01039, allocations: 338.8 kB / 336.1 MB, free: 4.789 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.635e-05/0.01048, allocations: 84.61 kB / 336.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.01063, allocations: 224.9 kB / 336.4 MB, free: 4.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/0.01083, allocations: 232.5 kB / 336.7 MB, free: 4.168 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.01084, allocations: 0 / 336.7 MB, free: 4.168 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003712/0.01121, allocations: 344.5 kB / 337 MB, free: 3.824 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.01122, allocations: 8 kB / 337 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.01123, allocations: 0 / 337 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004202/0.01165, allocations: 60.75 kB / 337.1 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.01178, allocations: 68.06 kB / 337.1 MB, free: 3.688 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007716/0.01255, allocations: 1.43 MB / 338.6 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.01266, allocations: 39.77 kB / 338.6 MB, free: 2.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.01268, allocations: 24.09 kB / 338.6 MB, free: 2.094 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 9.702e-05/0.01277, allocations: 145.8 kB / 338.8 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.01279, allocations: 27.81 kB / 338.8 MB, free: 1.914 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.246e-05/0.01282, allocations: 34.25 kB / 338.8 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.01282, allocations: 0 / 338.8 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-06/0.01282, allocations: 4 kB / 338.8 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.01282, allocations: 3.984 kB / 338.8 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.01297, allocations: 233.1 kB / 339.1 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.01297, allocations: 0 / 339.1 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.913e-05/0.01307, allocations: 51.91 kB / 339.1 MB, free: 1.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001012/0.01318, allocations: 44.81 kB / 339.2 MB, free: 1.523 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.01319, allocations: 11.94 kB / 339.2 MB, free: 1.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00059/0.01378, allocations: 1.299 MB / 340.5 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.01378, allocations: 0 / 340.5 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003813/0.01416, allocations: 345.7 kB / 340.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.063e-05/0.01421, allocations: 39.78 kB / 340.8 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.01423, allocations: 11.92 kB / 340.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.959e-05/0.0143, allocations: 24.14 kB / 340.9 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.523e-05/0.01435, allocations: 27.95 kB / 340.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.01436, allocations: 7.984 kB / 340.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.899e-05/0.01445, allocations: 169.2 kB / 341.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01445, allocations: 0 / 341.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002144/0.01467, allocations: 91.78 kB / 341.2 MB, free: 15.38 MB / 314.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 8.116e-05/0.01475, allocations: 103.2 kB / 341.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003539/0.0151, allocations: 310.4 kB / 341.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.0151, allocations: 0 / 341.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.01525, allocations: 194.5 kB / 341.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001594/0.01541, allocations: 32.48 kB / 341.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008011/0.01621, allocations: 0.6497 MB / 342.5 MB, free: 14.04 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.029e-05/0.0163, allocations: 164.8 kB / 342.6 MB, free: 13.85 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.531e-05/0.01635, allocations: 24.5 kB / 342.6 MB, free: 13.83 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01635, allocations: 0 / 342.6 MB, free: 13.83 MB / 314.7 MB Notification: Performance of Templates: time 0.004135/0.02049, allocations: 4.714 MB / 347.3 MB, free: 9.121 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/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.553011971525848]