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.001056/0.001056, allocations: 77.36 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001303/0.002359, allocations: 449.9 kB / 10.44 MB, free: 248 kB / 10.45 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.0006714/0.0006714, allocations: 144.9 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009121/0.001584, allocations: 475.6 kB / 11.8 MB, free: 2.363 MB / 13.93 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.9297/0.9297, allocations: 173.4 MB / 185.9 MB, free: 8.926 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08563/1.015, allocations: 52.5 MB / 238.4 MB, free: 4.363 MB / 234.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.362e-06/1.362e-06, allocations: 0 / 239.7 MB, free: 3.074 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.686e-05/1.822e-05, allocations: 5.828 kB / 239.7 MB, free: 3.07 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002775/0.002793, allocations: 3.165 MB / 242.9 MB, free: 15.89 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.003819, allocations: 0.763 MB / 243.7 MB, free: 15.12 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.003953, allocations: 12 kB / 243.7 MB, free: 15.11 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.004056, allocations: 59.42 kB / 243.7 MB, free: 15.05 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.004204, allocations: 106.9 kB / 243.8 MB, free: 14.94 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.004428, allocations: 115.7 kB / 244 MB, free: 14.83 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.004738, allocations: 430 kB / 244.4 MB, free: 14.41 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.00489, allocations: 103 kB / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.005139, allocations: 272 kB / 244.7 MB, free: 14.04 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.005291, allocations: 123.7 kB / 244.9 MB, free: 13.91 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.244e-05/0.005333, allocations: 36 kB / 244.9 MB, free: 13.88 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.95e-05/0.005373, allocations: 36 kB / 244.9 MB, free: 13.84 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.874e-05/0.005422, allocations: 59.75 kB / 245 MB, free: 13.79 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.996e-05/0.005502, allocations: 107.8 kB / 245.1 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.005734, allocations: 259 kB / 245.4 MB, free: 13.43 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.112e-05/0.005745, allocations: 0 / 245.4 MB, free: 13.43 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.005745, allocations: 0 / 245.4 MB, free: 13.43 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.005756, allocations: 0 / 245.4 MB, free: 13.43 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.0006982/0.006455, allocations: 0.6361 MB / 246 MB, free: 12.77 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.006488, allocations: 8.031 kB / 246 MB, free: 12.76 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.444e-05/0.006563, allocations: 56.89 kB / 246.1 MB, free: 12.7 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.006787, allocations: 186.2 kB / 246.2 MB, free: 12.49 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.034e-05/0.006867, allocations: 136 kB / 246.4 MB, free: 12.34 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.006908, allocations: 32.33 kB / 246.4 MB, free: 12.3 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.007182, allocations: 327.3 kB / 246.7 MB, free: 11.95 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.007192, allocations: 4.188 kB / 246.7 MB, free: 11.95 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.00721, allocations: 12.12 kB / 246.7 MB, free: 11.93 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.00722, allocations: 8 kB / 246.7 MB, free: 11.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001076/0.007327, allocations: 88.48 kB / 246.8 MB, free: 11.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009751/0.008302, allocations: 1.068 MB / 247.9 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.008469, allocations: 106.5 kB / 248 MB, free: 10.59 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.912e-05/0.008518, allocations: 52.81 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.008535, allocations: 4 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000161/0.008696, allocations: 180.3 kB / 248.2 MB, free: 10.32 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.213e-06/0.008697, allocations: 0 / 248.2 MB, free: 10.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004275/0.009125, allocations: 182.4 kB / 248.4 MB, free: 10.13 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.009158, allocations: 59.34 kB / 248.5 MB, free: 10.06 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.00929, allocations: 232.9 kB / 248.7 MB, free: 9.824 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.009307, allocations: 33.7 kB / 248.7 MB, free: 9.785 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.82e-05/0.009396, allocations: 200.2 kB / 248.9 MB, free: 9.582 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.268e-05/0.009438, allocations: 75.39 kB / 249 MB, free: 9.508 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.178e-05/0.0095, allocations: 65.95 kB / 249.1 MB, free: 9.438 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.494e-05/0.009575, allocations: 334.8 kB / 249.4 MB, free: 9.102 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.68e-05/0.009612, allocations: 28.64 kB / 249.4 MB, free: 9.074 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.77e-05/0.009709, allocations: 180.9 kB / 249.6 MB, free: 8.84 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001351/0.009845, allocations: 183.3 kB / 249.8 MB, free: 8.625 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.00985, allocations: 8 kB / 249.8 MB, free: 8.617 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002426/0.01009, allocations: 220.4 kB / 250 MB, free: 8.395 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.0101, allocations: 4 kB / 250 MB, free: 8.391 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.01011, allocations: 4 kB / 250 MB, free: 8.387 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001273/0.01024, allocations: 49.09 kB / 250.1 MB, free: 8.336 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.01041, allocations: 83.08 kB / 250.1 MB, free: 8.258 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006836/0.0111, allocations: 1.32 MB / 251.5 MB, free: 6.852 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.01121, allocations: 43.89 kB / 251.5 MB, free: 6.809 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.01122, allocations: 12 kB / 251.5 MB, free: 6.797 MB / 250.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 8.592e-05/0.01131, allocations: 129.8 kB / 251.6 MB, free: 6.66 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.01133, allocations: 23.97 kB / 251.7 MB, free: 6.637 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.455e-05/0.01136, allocations: 30.2 kB / 251.7 MB, free: 6.613 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.01136, allocations: 4 kB / 251.7 MB, free: 6.609 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.01136, allocations: 0 / 251.7 MB, free: 6.609 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.01136, allocations: 0 / 251.7 MB, free: 6.609 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.0115, allocations: 169.7 kB / 251.9 MB, free: 6.426 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.0115, allocations: 0 / 251.9 MB, free: 6.426 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.01163, allocations: 46.56 kB / 251.9 MB, free: 6.383 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.01167, allocations: 31.78 kB / 251.9 MB, free: 6.352 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.746e-05/0.01176, allocations: 36.77 kB / 252 MB, free: 6.312 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.01177, allocations: 8 kB / 252 MB, free: 6.305 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005475/0.01232, allocations: 1.178 MB / 253.2 MB, free: 5.039 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.01232, allocations: 0 / 253.2 MB, free: 5.039 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002273/0.01255, allocations: 205.7 kB / 253.4 MB, free: 4.816 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.01257, allocations: 12.16 kB / 253.4 MB, free: 4.805 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.055e-05/0.01263, allocations: 11.98 kB / 253.4 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.557e-05/0.01268, allocations: 31.94 kB / 253.4 MB, free: 4.762 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.01269, allocations: 4 kB / 253.4 MB, free: 4.758 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.045e-05/0.01274, allocations: 70.78 kB / 253.5 MB, free: 4.684 MB / 250.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01274, allocations: 3.938 kB / 253.5 MB, free: 4.68 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002075/0.01295, allocations: 91.84 kB / 253.6 MB, free: 4.59 MB / 250.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 9.114e-05/0.01304, allocations: 88.41 kB / 253.7 MB, free: 4.496 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002626/0.0133, allocations: 238.9 kB / 253.9 MB, free: 4.246 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.01331, allocations: 4 kB / 253.9 MB, free: 4.242 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000272/0.01358, allocations: 186.6 kB / 254.1 MB, free: 4.047 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.01382, allocations: 342.4 kB / 254.4 MB, free: 3.652 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.01632, allocations: 0.6311 MB / 255.1 MB, free: 2.992 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.552e-05/0.01636, allocations: 96.3 kB / 255.1 MB, free: 2.879 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.031e-05/0.01643, allocations: 22.28 kB / 255.2 MB, free: 2.852 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.01653, allocations: 103.3 kB / 255.3 MB, free: 2.75 MB / 250.7 MB Notification: Performance of SimCode: time 6.62e-07/0.01653, allocations: 0 / 255.3 MB, free: 2.75 MB / 250.7 MB Notification: Performance of Templates: time 0.005203/0.02174, allocations: 3.246 MB / 258.5 MB, free: 15.55 MB / 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.65858200751245]