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.001307/0.001307, allocations: 110.8 kB / 19.17 MB, free: 3.891 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.001378/0.001378, allocations: 210.5 kB / 22.13 MB, free: 0.9375 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.455/1.455, allocations: 230.2 MB / 255.1 MB, free: 15.24 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.001891/0.001891, allocations: 67.89 kB / 374.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.0974, allocations: 53.32 MB / 427.8 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004641/0.102, allocations: 3.174 MB / 431 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001644/0.1037, allocations: 0.8296 MB / 431.9 MB, free: 464 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.1039, allocations: 7.938 kB / 431.9 MB, free: 456 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.104, allocations: 63.38 kB / 431.9 MB, free: 392 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002079/0.1043, allocations: 99.05 kB / 432 MB, free: 292 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004429/0.1047, allocations: 123.7 kB / 432.1 MB, free: 168 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1892/0.2939, allocations: 415.5 kB / 432.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.2941, allocations: 99.17 kB / 432.6 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003883/0.2945, allocations: 168 kB / 432.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002444/0.2948, allocations: 175.2 kB / 433 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.477e-05/0.2948, allocations: 35.41 kB / 433 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.295, allocations: 37.97 kB / 433 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.384e-05/0.295, allocations: 82.06 kB / 433.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001724/0.2952, allocations: 188.7 kB / 433.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004671/0.2957, allocations: 432.8 kB / 433.7 MB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2957, allocations: 0.5938 kB / 433.7 MB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2957, allocations: 0.9688 kB / 433.7 MB, free: 7.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.2957, allocations: 1.156 kB / 433.7 MB, free: 7.98 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.0009751/0.2966, allocations: 0.6582 MB / 434.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.2967, allocations: 9.156 kB / 434.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000186/0.2969, allocations: 54.95 kB / 434.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.2972, allocations: 284.5 kB / 434.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.244e-05/0.2973, allocations: 85.11 kB / 434.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.116e-05/0.2973, allocations: 33.72 kB / 434.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005064/0.2978, allocations: 336.2 kB / 435.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.2978, allocations: 0 / 435.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/0.2979, allocations: 14.59 kB / 435.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.2979, allocations: 8.844 kB / 435.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003961/0.2983, allocations: 222.2 kB / 435.4 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.2999, allocations: 1.357 MB / 436.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003395/0.3002, allocations: 169.8 kB / 436.9 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.3004, allocations: 80.25 kB / 437 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.3004, allocations: 7.422 kB / 437 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000257/0.3006, allocations: 156.9 kB / 437.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.3007, allocations: 3.562 kB / 437.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001096/0.3017, allocations: 397.8 kB / 437.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.3018, allocations: 114.7 kB / 437.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.302, allocations: 265.1 kB / 437.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.302, allocations: 26.7 kB / 438 MB, free: 5.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.717e-05/0.3021, allocations: 215.2 kB / 438.2 MB, free: 5.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.09e-05/0.3022, allocations: 80.69 kB / 438.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.385e-05/0.3023, allocations: 59.88 kB / 438.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.088e-05/0.3024, allocations: 335.3 kB / 438.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.3025, allocations: 76.72 kB / 438.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.3027, allocations: 180.2 kB / 438.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.303, allocations: 238.9 kB / 439.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.303, allocations: 1.375 kB / 439.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006641/0.3037, allocations: 345.2 kB / 439.5 MB, free: 5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3037, allocations: 6.438 kB / 439.5 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.3037, allocations: 4.219 kB / 439.5 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002682/0.304, allocations: 55.81 kB / 439.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.3043, allocations: 62.61 kB / 439.6 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/0.3053, allocations: 1.57 MB / 441.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.3055, allocations: 54.09 kB / 441.2 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.457e-05/0.3056, allocations: 14.86 kB / 441.2 MB, free: 3.387 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.0001353/0.3057, allocations: 154.7 kB / 441.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.038e-05/0.3057, allocations: 26.67 kB / 441.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.885e-05/0.3058, allocations: 35.66 kB / 441.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3058, allocations: 5.969 kB / 441.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-06/0.3058, allocations: 4.703 kB / 441.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3058, allocations: 1.828 kB / 441.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003042/0.3061, allocations: 343.3 kB / 441.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3061, allocations: 3.281 kB / 441.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.3063, allocations: 33.73 kB / 441.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001941/0.3065, allocations: 56.64 kB / 441.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.3065, allocations: 6.422 kB / 441.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008371/0.3074, allocations: 1.417 MB / 443.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3074, allocations: 3.656 kB / 443.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000697/0.3081, allocations: 350.8 kB / 443.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.258e-05/0.3082, allocations: 113.6 kB / 443.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.3082, allocations: 2.922 kB / 443.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.3084, allocations: 20.62 kB / 443.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.797e-05/0.3085, allocations: 34.25 kB / 443.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.3085, allocations: 8.859 kB / 443.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001551/0.3086, allocations: 182.4 kB / 444 MB, free: 1.082 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3086, allocations: 5.156 kB / 444 MB, free: 1.078 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00042/0.3091, allocations: 92.97 kB / 444.1 MB, free: 1.055 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.0001113/0.3092, allocations: 104.8 kB / 444.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005731/0.3097, allocations: 299.1 kB / 444.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3097, allocations: 128 / 444.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000273/0.31, allocations: 204.6 kB / 444.7 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.3103, allocations: 39.3 kB / 444.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.3117, allocations: 0.7101 MB / 445.4 MB, free: 216 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003853/0.3121, allocations: 0.7728 MB / 446.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.08e-05/0.3122, allocations: 25.62 kB / 446.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3122, allocations: 0 / 446.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of Templates: time 0.007902/0.3201, allocations: 4.697 MB / 450.9 MB, free: 15.13 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.62115634791553]