Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001655/0.001655, allocations: 122.5 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001591/0.001591, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 67.89 kB / 373.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1169, allocations: 53.32 MB / 427.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004774/0.1216, allocations: 3.17 MB / 430.3 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.1233, allocations: 0.8334 MB / 431.2 MB, free: 460 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.1234, allocations: 4 kB / 431.2 MB, free: 456 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.1236, allocations: 59.42 kB / 431.2 MB, free: 396 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002197/0.1238, allocations: 103 kB / 431.3 MB, free: 292 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000421/0.1243, allocations: 131.7 kB / 431.5 MB, free: 160 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2473/0.3716, allocations: 409.4 kB / 431.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003398/0.3719, allocations: 101.1 kB / 432 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005006/0.3724, allocations: 172.3 kB / 432.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002947/0.3727, allocations: 172.2 kB / 432.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.015e-05/0.3728, allocations: 35.03 kB / 432.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.3729, allocations: 37.25 kB / 432.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.672e-05/0.373, allocations: 84.78 kB / 432.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001928/0.3732, allocations: 187 kB / 432.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005407/0.3737, allocations: 433.4 kB / 433.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3737, allocations: 0 / 433.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3737, allocations: 0 / 433.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.3737, allocations: 3.25 kB / 433.1 MB, free: 8.469 MB / 350.1 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.00104/0.3748, allocations: 0.6604 MB / 433.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.3748, allocations: 11.66 kB / 433.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002157/0.375, allocations: 50.81 kB / 433.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.3754, allocations: 287.5 kB / 434.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/0.3756, allocations: 79.36 kB / 434.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.705e-05/0.3756, allocations: 31.19 kB / 434.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006007/0.3762, allocations: 339.7 kB / 434.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.3762, allocations: 0.5625 kB / 434.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.3763, allocations: 14.56 kB / 434.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3763, allocations: 9.406 kB / 434.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003975/0.3767, allocations: 218.8 kB / 434.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.3786, allocations: 1.356 MB / 436.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003709/0.3789, allocations: 169.6 kB / 436.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.3791, allocations: 82.19 kB / 436.3 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.3792, allocations: 10.25 kB / 436.3 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003529/0.3795, allocations: 154 kB / 436.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.425e-06/0.3795, allocations: 3.938 kB / 436.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001222/0.3807, allocations: 402.3 kB / 436.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.3808, allocations: 110 kB / 437 MB, free: 6.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003094/0.3811, allocations: 266.3 kB / 437.3 MB, free: 6.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.3811, allocations: 31.39 kB / 437.3 MB, free: 6.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.3813, allocations: 207.2 kB / 437.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.172e-05/0.3813, allocations: 84.75 kB / 437.6 MB, free: 6.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.3815, allocations: 58.02 kB / 437.6 MB, free: 6.008 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.963e-05/0.3815, allocations: 338.4 kB / 438 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.3817, allocations: 78.97 kB / 438 MB, free: 5.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.382, allocations: 177.6 kB / 438.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003814/0.3823, allocations: 236.5 kB / 438.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3823, allocations: 2.625 kB / 438.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007948/0.3831, allocations: 348 kB / 438.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.3832, allocations: 7.547 kB / 438.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.3832, allocations: 2.531 kB / 438.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003565/0.3835, allocations: 59.59 kB / 438.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002754/0.3838, allocations: 61.91 kB / 438.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001219/0.385, allocations: 1.567 MB / 440.5 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/0.3853, allocations: 54 kB / 440.5 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.3854, allocations: 11.7 kB / 440.5 MB, free: 3.598 MB / 350.1 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.0001679/0.3855, allocations: 151.3 kB / 440.7 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.583e-05/0.3856, allocations: 29.17 kB / 440.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.966e-05/0.3856, allocations: 32.78 kB / 440.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.3856, allocations: 6.5 kB / 440.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3856, allocations: 0 / 440.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3856, allocations: 1.5 kB / 440.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003691/0.386, allocations: 335.7 kB / 441.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.386, allocations: 1.5 kB / 441.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002041/0.3862, allocations: 42.19 kB / 441.1 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002057/0.3864, allocations: 51.41 kB / 441.2 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.3864, allocations: 12.44 kB / 441.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.3875, allocations: 1.415 MB / 442.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3875, allocations: 0 / 442.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007697/0.3882, allocations: 356 kB / 443 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.3884, allocations: 117.2 kB / 443.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.363e-05/0.3884, allocations: 7.891 kB / 443.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.3886, allocations: 22.16 kB / 443.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.3887, allocations: 38.03 kB / 443.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.3887, allocations: 4.703 kB / 443.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002429/0.389, allocations: 187.1 kB / 443.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.389, allocations: 4.062 kB / 443.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005249/0.3895, allocations: 89.97 kB / 443.4 MB, free: 1.262 MB / 350.1 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.0001653/0.3897, allocations: 110.1 kB / 443.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000761/0.3904, allocations: 300.4 kB / 443.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3904, allocations: 4.188 kB / 443.8 MB, free: 1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003195/0.3908, allocations: 199.8 kB / 444 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.3911, allocations: 34.89 kB / 444.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.3927, allocations: 0.687 MB / 444.7 MB, free: 460 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.3932, allocations: 0.7687 MB / 445.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.3933, allocations: 29.77 kB / 445.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.079e-05/0.3934, allocations: 22.97 kB / 445.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3934, allocations: 0 / 445.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of Templates: time 0.01086/0.4042, allocations: 3.186 MB / 448.7 MB, free: 15.53 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 5.13394146040082]