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.0009351/0.0009351, allocations: 91.5 kB / 21.2 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.000937/0.000937, 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.9516/0.9516, allocations: 177 MB / 204.8 MB, free: 5.59 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.493e-06/1.493e-06, allocations: 0 / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.471e-05/2.62e-05, allocations: 2.312 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003416/0.003442, allocations: 3.155 MB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.004695, allocations: 0.8138 MB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.004855, allocations: 4 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001683/0.005023, allocations: 63.36 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.005194, allocations: 110.9 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00038/0.005574, allocations: 119.7 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003421/0.005916, allocations: 437.9 kB / 277.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.006094, allocations: 100.3 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003006/0.006394, allocations: 247.5 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.006555, allocations: 131.6 kB / 278.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.038e-05/0.006595, allocations: 32 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.752e-05/0.006663, allocations: 40 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.984e-05/0.006712, allocations: 83.66 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.006813, allocations: 135.7 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.007117, allocations: 294.8 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.00712, allocations: 0 / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.007121, allocations: 0 / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.007127, allocations: 0 / 278.7 MB, free: 11.67 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.0007228/0.00785, allocations: 0.6752 MB / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.007891, allocations: 15.98 kB / 279.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001678/0.008059, allocations: 80.64 kB / 279.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002668/0.008325, allocations: 233.6 kB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.035e-05/0.008416, allocations: 132 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.081e-05/0.008456, allocations: 32.38 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003613/0.008818, allocations: 350.7 kB / 280.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.00883, allocations: 192 / 280.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/0.008854, allocations: 16.12 kB / 280.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.008866, allocations: 15.98 kB / 280.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.009055, allocations: 123.8 kB / 280.3 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.01021, allocations: 1.35 MB / 281.7 MB, free: 8.449 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.01042, allocations: 135.9 kB / 281.8 MB, free: 8.305 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.829e-05/0.0105, allocations: 55.66 kB / 281.8 MB, free: 8.246 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.01052, allocations: 4 kB / 281.8 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.01071, allocations: 199.3 kB / 282 MB, free: 8.008 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.092e-06/0.01071, allocations: 0 / 282 MB, free: 8.008 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005613/0.01127, allocations: 252.7 kB / 282.3 MB, free: 7.754 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.01132, allocations: 106.8 kB / 282.4 MB, free: 7.625 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.01149, allocations: 292.2 kB / 282.7 MB, free: 7.324 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.01151, allocations: 25.7 kB / 282.7 MB, free: 7.293 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.01161, allocations: 262.9 kB / 283 MB, free: 7.031 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.849e-05/0.01166, allocations: 71.41 kB / 283 MB, free: 6.961 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/0.01188, allocations: 71.64 kB / 283.1 MB, free: 6.883 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.01199, allocations: 0.5117 MB / 283.6 MB, free: 6.359 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.107e-05/0.01206, allocations: 44.62 kB / 283.7 MB, free: 6.316 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.0122, allocations: 236.5 kB / 283.9 MB, free: 6.012 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.01239, allocations: 217.5 kB / 284.1 MB, free: 5.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.0124, allocations: 0 / 284.1 MB, free: 5.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003419/0.01274, allocations: 279.5 kB / 284.4 MB, free: 5.469 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.01276, allocations: 10.84 kB / 284.4 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01276, allocations: 4 kB / 284.4 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001664/0.01293, allocations: 47.59 kB / 284.4 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.01308, allocations: 59.91 kB / 284.5 MB, free: 5.348 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009441/0.01403, allocations: 1.988 MB / 286.5 MB, free: 3.238 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.01415, allocations: 39.77 kB / 286.5 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.01416, allocations: 15.94 kB / 286.5 MB, free: 3.184 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 9.981e-05/0.01426, allocations: 176.5 kB / 286.7 MB, free: 3 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.01429, allocations: 39.95 kB / 286.7 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.601e-05/0.01432, allocations: 26.28 kB / 286.8 MB, free: 2.934 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.01432, allocations: 0 / 286.8 MB, free: 2.934 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.01432, allocations: 4 kB / 286.8 MB, free: 2.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.01433, allocations: 7.922 kB / 286.8 MB, free: 2.922 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.0145, allocations: 236.4 kB / 287 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.0145, allocations: 0 / 287 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.0146, allocations: 39.91 kB / 287.1 MB, free: 2.617 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001021/0.01471, allocations: 47.64 kB / 287.1 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.01472, allocations: 7.984 kB / 287.1 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007117/0.01543, allocations: 1.744 MB / 288.9 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.01543, allocations: 0 / 288.9 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003265/0.01576, allocations: 264 kB / 289.1 MB, free: 416 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.512e-05/0.01582, allocations: 39.77 kB / 289.1 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.01584, allocations: 8 kB / 289.2 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.819e-05/0.0159, allocations: 19.98 kB / 289.2 MB, free: 348 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.754e-05/0.01597, allocations: 27.89 kB / 289.2 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.01598, allocations: 7.984 kB / 289.2 MB, free: 312 kB / 266.7 MB Notification: Performance of sorting global known variables: time 9.612e-05/0.01608, allocations: 197.1 kB / 289.4 MB, free: 112 kB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01608, allocations: 0 / 289.4 MB, free: 112 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002456/0.01632, allocations: 95.81 kB / 289.5 MB, free: 16 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.0001047/0.01643, allocations: 103.2 kB / 289.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003723/0.0168, allocations: 328.3 kB / 289.9 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.0168, allocations: 0 / 289.9 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003051/0.01711, allocations: 239.1 kB / 290.2 MB, free: 15.31 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001861/0.01729, allocations: 44.41 kB / 290.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.0184, allocations: 0.6195 MB / 290.8 MB, free: 14.62 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.771e-05/0.01845, allocations: 92.52 kB / 290.9 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.013e-05/0.01852, allocations: 30.27 kB / 290.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.347e-05/0.01856, allocations: 20.5 kB / 291 MB, free: 14.46 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.01857, allocations: 0 / 291 MB, free: 14.46 MB / 282.7 MB Notification: Performance of Templates: time 0.004958/0.02352, allocations: 2.958 MB / 293.9 MB, free: 11.55 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: 3.010936403647065]