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.001098/0.001098, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.0008539/0.0008539, allocations: 156.5 kB / 24.55 MB, free: 20 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 0.9078/0.9078, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.579e-05/2.736e-05, allocations: 5.266 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006616/0.006644, allocations: 3.162 MB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.007952, allocations: 0.8061 MB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.008094, allocations: 4 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.008248, allocations: 67.36 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.008404, allocations: 106.9 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000375/0.008779, allocations: 123.7 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000413/0.009192, allocations: 445.8 kB / 277.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001689/0.00936, allocations: 92.36 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003052/0.009666, allocations: 247.5 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.009837, allocations: 131.6 kB / 278.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.954e-05/0.009876, allocations: 32 kB / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.497e-05/0.009951, allocations: 39.94 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.656e-05/0.009998, allocations: 83.67 kB / 278.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.39e-05/0.01009, allocations: 139.7 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.01037, allocations: 287 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.01037, allocations: 0 / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.01037, allocations: 0 / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.01038, allocations: 0 / 278.7 MB, free: 11.68 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.000739/0.01112, allocations: 0.6791 MB / 279.3 MB, free: 10.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.01116, allocations: 15.98 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.01132, allocations: 80.64 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.01158, allocations: 225 kB / 279.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.964e-05/0.01167, allocations: 136 kB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.01171, allocations: 32.38 kB / 279.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/0.01208, allocations: 350.7 kB / 280.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.01209, allocations: 192 / 280.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.01212, allocations: 16.12 kB / 280.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.01214, allocations: 11.94 kB / 280.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002081/0.01235, allocations: 131.8 kB / 280.3 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001184/0.01353, allocations: 1.343 MB / 281.7 MB, free: 8.465 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.0138, allocations: 139.9 kB / 281.8 MB, free: 8.316 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.963e-05/0.01388, allocations: 55.66 kB / 281.8 MB, free: 8.258 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.0139, allocations: 4 kB / 281.9 MB, free: 8.254 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001964/0.01409, allocations: 195.3 kB / 282 MB, free: 8.023 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.442e-06/0.0141, allocations: 0 / 282 MB, free: 8.023 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005933/0.01469, allocations: 256.7 kB / 282.3 MB, free: 7.766 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.424e-05/0.01475, allocations: 106.8 kB / 282.4 MB, free: 7.637 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.01494, allocations: 292.2 kB / 282.7 MB, free: 7.336 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.01496, allocations: 29.7 kB / 282.7 MB, free: 7.301 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.01507, allocations: 262.9 kB / 283 MB, free: 7.039 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.893e-05/0.01512, allocations: 67.42 kB / 283 MB, free: 6.973 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.635e-05/0.01521, allocations: 75.62 kB / 283.1 MB, free: 6.891 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.01537, allocations: 0.5039 MB / 283.6 MB, free: 6.375 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.535e-05/0.01545, allocations: 52.62 kB / 283.7 MB, free: 6.324 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.01561, allocations: 232.5 kB / 283.9 MB, free: 6.023 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.01582, allocations: 217.5 kB / 284.1 MB, free: 5.762 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.01582, allocations: 0 / 284.1 MB, free: 5.762 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003778/0.0162, allocations: 275.2 kB / 284.4 MB, free: 5.484 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.01622, allocations: 7.156 kB / 284.4 MB, free: 5.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.01623, allocations: 8 kB / 284.4 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001716/0.0164, allocations: 51.58 kB / 284.4 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.01655, allocations: 63.84 kB / 284.5 MB, free: 5.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009977/0.01755, allocations: 1.985 MB / 286.5 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.01769, allocations: 39.77 kB / 286.5 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.01771, allocations: 19.94 kB / 286.5 MB, free: 3.191 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.0001158/0.01783, allocations: 172.5 kB / 286.7 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.101e-05/0.01786, allocations: 31.86 kB / 286.7 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.808e-05/0.01788, allocations: 38.27 kB / 286.8 MB, free: 2.941 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.01789, allocations: 4 kB / 286.8 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.01789, allocations: 0 / 286.8 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.0179, allocations: 0 / 286.8 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.01809, allocations: 236.3 kB / 287 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.01809, allocations: 0 / 287 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.0182, allocations: 43.92 kB / 287.1 MB, free: 2.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001166/0.01832, allocations: 43.64 kB / 287.1 MB, free: 2.582 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.01834, allocations: 4 kB / 287.1 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.01934, allocations: 1.752 MB / 288.9 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01934, allocations: 0 / 288.9 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003518/0.0197, allocations: 264 kB / 289.1 MB, free: 428 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.192e-05/0.01976, allocations: 39.78 kB / 289.2 MB, free: 388 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.01978, allocations: 11.92 kB / 289.2 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.865e-05/0.01985, allocations: 16 kB / 289.2 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.946e-05/0.01992, allocations: 27.94 kB / 289.2 MB, free: 332 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.01993, allocations: 4 kB / 289.2 MB, free: 328 kB / 266.7 MB Notification: Performance of sorting global known variables: time 9.759e-05/0.02003, allocations: 197.1 kB / 289.4 MB, free: 128 kB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02003, allocations: 0 / 289.4 MB, free: 128 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002606/0.02029, allocations: 99.81 kB / 289.5 MB, free: 28 kB / 266.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.0001215/0.02041, allocations: 103.2 kB / 289.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000415/0.02082, allocations: 324.3 kB / 289.9 MB, free: 15.58 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.02083, allocations: 0 / 289.9 MB, free: 15.58 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.021, allocations: 239.1 kB / 290.1 MB, free: 15.33 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001987/0.0212, allocations: 40.47 kB / 290.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.02242, allocations: 0.6234 MB / 290.8 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.298e-05/0.02248, allocations: 88.58 kB / 290.9 MB, free: 14.53 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.967e-05/0.02256, allocations: 30.27 kB / 290.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.493e-05/0.02261, allocations: 20.5 kB / 290.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of SimCode: time 1.353e-06/0.02261, allocations: 0 / 290.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of Templates: time 0.005431/0.02804, allocations: 3.084 MB / 294 MB, free: 11.45 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.893723512068391]