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.001904/0.001904, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 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.002031/0.002031, allocations: 164.8 kB / 24.27 MB, free: 156 kB / 18.57 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.54/1.54, allocations: 177 MB / 204.5 MB, free: 5.625 MB / 186.7 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 1.573e-06/1.573e-06, allocations: 0 / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.053e-05/3.21e-05, allocations: 6.312 kB / 272.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004943/0.004975, allocations: 3.113 MB / 275.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.006829, allocations: 0.7983 MB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.006997, allocations: 11.94 kB / 276.1 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.007184, allocations: 59.42 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.007428, allocations: 103 kB / 276.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004131/0.007841, allocations: 127.5 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005322/0.008374, allocations: 445.9 kB / 276.9 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.008597, allocations: 88.38 kB / 276.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004075/0.009005, allocations: 259.4 kB / 277.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002578/0.009263, allocations: 127.6 kB / 277.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.884e-05/0.009332, allocations: 36 kB / 277.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.946e-05/0.009431, allocations: 36 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.398e-05/0.009525, allocations: 83.67 kB / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.0097, allocations: 131.7 kB / 277.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005994/0.0103, allocations: 450.5 kB / 278 MB, free: 11.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.0103, allocations: 0 / 278 MB, free: 11.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01031, allocations: 4 kB / 278 MB, free: 11.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.01031, allocations: 0 / 278 MB, free: 11.93 MB / 266.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.001215/0.01153, allocations: 0.6944 MB / 278.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.01157, allocations: 11.98 kB / 278.8 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000237/0.01181, allocations: 80.64 kB / 278.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.01223, allocations: 241.5 kB / 279.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.01237, allocations: 136 kB / 279.2 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.873e-05/0.01243, allocations: 28.38 kB / 279.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006638/0.01309, allocations: 406.1 kB / 279.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.01311, allocations: 192 / 279.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.79e-05/0.01315, allocations: 16.12 kB / 279.6 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.01316, allocations: 8 kB / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004522/0.01361, allocations: 214.5 kB / 279.9 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002306/0.01592, allocations: 1.46 MB / 281.3 MB, free: 8.453 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003782/0.0163, allocations: 163 kB / 281.5 MB, free: 8.281 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.01647, allocations: 83.66 kB / 281.6 MB, free: 8.195 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.0165, allocations: 4 kB / 281.6 MB, free: 8.191 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003598/0.01686, allocations: 227.4 kB / 281.8 MB, free: 7.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.183e-06/0.01686, allocations: 0 / 281.8 MB, free: 7.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001089/0.01795, allocations: 320.7 kB / 282.1 MB, free: 7.609 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.01806, allocations: 110.8 kB / 282.2 MB, free: 7.477 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003615/0.01842, allocations: 336.2 kB / 282.5 MB, free: 7.129 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.01845, allocations: 29.7 kB / 282.6 MB, free: 7.094 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.01867, allocations: 270.9 kB / 282.8 MB, free: 6.824 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.482e-05/0.01876, allocations: 75.42 kB / 282.9 MB, free: 6.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002758/0.01904, allocations: 75.64 kB / 283 MB, free: 6.668 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000297/0.01933, allocations: 0.5196 MB / 283.5 MB, free: 6.137 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.0195, allocations: 72.62 kB / 283.6 MB, free: 6.066 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003324/0.01983, allocations: 280.5 kB / 283.8 MB, free: 5.719 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004337/0.02027, allocations: 273.5 kB / 284.1 MB, free: 5.402 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.02027, allocations: 0 / 284.1 MB, free: 5.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007294/0.021, allocations: 343.2 kB / 284.4 MB, free: 5.059 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.02102, allocations: 4.344 kB / 284.4 MB, free: 5.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.02103, allocations: 8 kB / 284.5 MB, free: 5.047 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000256/0.02128, allocations: 55.59 kB / 284.5 MB, free: 4.988 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.02154, allocations: 63.91 kB / 284.6 MB, free: 4.926 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/0.02354, allocations: 2.043 MB / 286.6 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.0238, allocations: 43.77 kB / 286.7 MB, free: 2.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.02383, allocations: 15.94 kB / 286.7 MB, free: 2.703 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.0002438/0.02407, allocations: 200.4 kB / 286.9 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.909e-05/0.02413, allocations: 35.81 kB / 286.9 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.895e-05/0.02419, allocations: 30.34 kB / 286.9 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.02419, allocations: 3.938 kB / 286.9 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.0242, allocations: 3.984 kB / 286.9 MB, free: 2.422 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.0242, allocations: 7.984 kB / 287 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003701/0.02457, allocations: 280.4 kB / 287.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.02457, allocations: 0 / 287.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001991/0.02477, allocations: 39.97 kB / 287.3 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002083/0.02498, allocations: 51.66 kB / 287.3 MB, free: 2.012 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.025, allocations: 7.984 kB / 287.3 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/0.02669, allocations: 1.822 MB / 289.1 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.02669, allocations: 0 / 289.1 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000784/0.02747, allocations: 355.9 kB / 289.5 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.595e-05/0.02757, allocations: 35.78 kB / 289.5 MB, free: 15.65 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.02761, allocations: 7.984 kB / 289.5 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.02778, allocations: 12 kB / 289.5 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.02789, allocations: 35.94 kB / 289.6 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.02791, allocations: 4 kB / 289.6 MB, free: 15.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002263/0.02813, allocations: 221.1 kB / 289.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.02813, allocations: 0 / 289.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000423/0.02856, allocations: 95.81 kB / 289.9 MB, free: 15.28 MB / 282.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.0003151/0.02887, allocations: 107.2 kB / 290 MB, free: 15.17 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007567/0.02963, allocations: 384.6 kB / 290.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.02963, allocations: 0 / 290.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004114/0.03004, allocations: 267.1 kB / 290.6 MB, free: 14.49 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.03033, allocations: 36.42 kB / 290.7 MB, free: 14.46 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.03196, allocations: 0.6205 MB / 291.3 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001845/0.03214, allocations: 168.8 kB / 291.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.03225, allocations: 26.28 kB / 291.5 MB, free: 13.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.868e-05/0.03232, allocations: 24.48 kB / 291.5 MB, free: 13.57 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.03232, allocations: 4 kB / 291.5 MB, free: 13.56 MB / 282.7 MB Notification: Performance of Templates: time 0.008521/0.04084, allocations: 2.965 MB / 294.5 MB, free: 10.64 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] 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: 4.715237977099605]