Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001301/0.001301, allocations: 84.39 kB / 22.21 MB, free: 2.289 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.001889/0.001889, allocations: 165.2 kB / 25.6 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.095/1.095, allocations: 158.6 MB / 187.5 MB, free: 2.801 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.615e-06/2.615e-06, allocations: 0 / 251.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.21e-05/3.472e-05, allocations: 6.25 kB / 251.5 MB, free: 7.242 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005942/0.005976, allocations: 3.05 MB / 254.5 MB, free: 4.176 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.007764, allocations: 0.772 MB / 255.3 MB, free: 3.395 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000231/0.007995, allocations: 4 kB / 255.3 MB, free: 3.391 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.008215, allocations: 63.42 kB / 255.4 MB, free: 3.328 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.008481, allocations: 118.9 kB / 255.5 MB, free: 3.211 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004703/0.008951, allocations: 107.7 kB / 255.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.00943, allocations: 433.8 kB / 256 MB, free: 2.68 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00024/0.00967, allocations: 92.38 kB / 256.1 MB, free: 2.582 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003411/0.01001, allocations: 247.4 kB / 256.3 MB, free: 2.34 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.0102, allocations: 131.6 kB / 256.5 MB, free: 2.211 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.356e-05/0.01025, allocations: 40 kB / 256.5 MB, free: 2.172 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.621e-05/0.0103, allocations: 32 kB / 256.5 MB, free: 2.141 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.277e-05/0.01036, allocations: 79.67 kB / 256.6 MB, free: 2.062 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.01047, allocations: 131.7 kB / 256.7 MB, free: 1.934 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.01077, allocations: 286.9 kB / 257 MB, free: 1.652 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.01077, allocations: 0 / 257 MB, free: 1.652 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.01077, allocations: 0 / 257 MB, free: 1.652 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.01078, allocations: 0 / 257 MB, free: 1.652 MB / 234.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.0007801/0.01156, allocations: 0.6868 MB / 257.7 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.01161, allocations: 11.98 kB / 257.7 MB, free: 0.9141 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.826e-05/0.01169, allocations: 68.66 kB / 257.8 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.01197, allocations: 225 kB / 258 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.01208, allocations: 132 kB / 258.1 MB, free: 456 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.138e-05/0.01212, allocations: 32.38 kB / 258.2 MB, free: 424 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003452/0.01247, allocations: 330.7 kB / 258.5 MB, free: 56 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.01248, allocations: 192 / 258.5 MB, free: 56 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/0.0125, allocations: 16.12 kB / 258.5 MB, free: 40 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.01251, allocations: 8 kB / 258.5 MB, free: 32 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001452/0.01265, allocations: 100.4 kB / 258.6 MB, free: 15.93 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.01421, allocations: 1.358 MB / 260 MB, free: 14.48 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.01442, allocations: 115.1 kB / 260.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.884e-05/0.01447, allocations: 51.59 kB / 260.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.01449, allocations: 7.984 kB / 260.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001827/0.01468, allocations: 191.4 kB / 260.3 MB, free: 14.07 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 2.114e-06/0.01468, allocations: 0 / 260.3 MB, free: 14.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005135/0.01519, allocations: 233.2 kB / 260.6 MB, free: 13.83 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.01524, allocations: 106.8 kB / 260.7 MB, free: 13.7 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.01541, allocations: 288 kB / 260.9 MB, free: 13.4 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.01543, allocations: 33.7 kB / 261 MB, free: 13.36 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.01555, allocations: 262.9 kB / 261.2 MB, free: 13.1 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.01559, allocations: 71.42 kB / 261.3 MB, free: 13.03 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.69e-05/0.01568, allocations: 75.59 kB / 261.4 MB, free: 12.95 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.01587, allocations: 0.5117 MB / 261.9 MB, free: 12.43 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.069e-05/0.01593, allocations: 32.62 kB / 261.9 MB, free: 12.39 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.01609, allocations: 224.4 kB / 262.1 MB, free: 12.11 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.01628, allocations: 205.4 kB / 262.3 MB, free: 11.86 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.01628, allocations: 0 / 262.3 MB, free: 11.86 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003566/0.01664, allocations: 258.7 kB / 262.6 MB, free: 11.59 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.01666, allocations: 11.94 kB / 262.6 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.01667, allocations: 4 kB / 262.6 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.01683, allocations: 47.58 kB / 262.7 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.01698, allocations: 64.06 kB / 262.7 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.01832, allocations: 1.954 MB / 264.7 MB, free: 9.402 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000156/0.01847, allocations: 39.83 kB / 264.7 MB, free: 9.363 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.01849, allocations: 12 kB / 264.7 MB, free: 9.352 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 0.0001268/0.01862, allocations: 184.5 kB / 264.9 MB, free: 9.16 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.33e-05/0.01865, allocations: 31.86 kB / 264.9 MB, free: 9.129 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.161e-05/0.01868, allocations: 26.27 kB / 265 MB, free: 9.102 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.01868, allocations: 4 kB / 265 MB, free: 9.098 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.01869, allocations: 0 / 265 MB, free: 9.098 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.01869, allocations: 7.922 kB / 265 MB, free: 9.09 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.01888, allocations: 193 kB / 265.2 MB, free: 8.875 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.01888, allocations: 4 kB / 265.2 MB, free: 8.871 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.01898, allocations: 31.98 kB / 265.2 MB, free: 8.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001094/0.01909, allocations: 47.62 kB / 265.2 MB, free: 8.789 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.01911, allocations: 4 kB / 265.3 MB, free: 8.785 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001277/0.02038, allocations: 1.721 MB / 267 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.02038, allocations: 0 / 267 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003195/0.0207, allocations: 263.6 kB / 267.2 MB, free: 6.66 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.559e-05/0.02076, allocations: 39.77 kB / 267.3 MB, free: 6.621 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.02078, allocations: 4 kB / 267.3 MB, free: 6.617 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.04e-05/0.02085, allocations: 23.86 kB / 267.3 MB, free: 6.594 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.725e-05/0.02092, allocations: 32.03 kB / 267.3 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-06/0.02093, allocations: 8 kB / 267.3 MB, free: 6.555 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.53e-05/0.02101, allocations: 185.1 kB / 267.5 MB, free: 6.375 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02101, allocations: 0 / 267.5 MB, free: 6.375 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002825/0.02129, allocations: 95.78 kB / 267.6 MB, free: 6.281 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 0.0001186/0.02141, allocations: 107.2 kB / 267.7 MB, free: 6.168 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003389/0.02175, allocations: 304.9 kB / 268 MB, free: 5.852 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.02175, allocations: 4.125 kB / 268 MB, free: 5.848 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001697/0.02192, allocations: 230.4 kB / 268.2 MB, free: 5.602 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.02212, allocations: 44.41 kB / 268.3 MB, free: 5.559 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.02323, allocations: 0.604 MB / 268.9 MB, free: 4.922 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.742e-05/0.02329, allocations: 88.31 kB / 269 MB, free: 4.816 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.508e-05/0.02336, allocations: 26.28 kB / 269 MB, free: 4.793 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.02347, allocations: 118.2 kB / 269.1 MB, free: 4.676 MB / 250.7 MB Notification: Performance of SimCode: time 1.052e-06/0.02347, allocations: 0 / 269.1 MB, free: 4.676 MB / 250.7 MB Notification: Performance of Templates: time 0.00577/0.02924, allocations: 3.145 MB / 272.3 MB, free: 1.559 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 3.299233171157539]