Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 47.92 kB / 370.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2391, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004608/0.2437, allocations: 3.164 MB / 425.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001433/0.2451, allocations: 0.7633 MB / 426.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.2453, allocations: 8 kB / 426.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002139/0.2455, allocations: 59.42 kB / 426.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002094/0.2457, allocations: 103 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.2461, allocations: 119.7 kB / 426.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005137/0.2467, allocations: 414.2 kB / 427.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.2469, allocations: 100.3 kB / 427.4 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/0.2471, allocations: 163.4 kB / 427.5 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002343/0.2473, allocations: 171.2 kB / 427.7 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.608e-05/0.2474, allocations: 36 kB / 427.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.872e-05/0.2475, allocations: 36 kB / 427.8 MB, free: 9.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.653e-05/0.2475, allocations: 79.69 kB / 427.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.2477, allocations: 195.1 kB / 428 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004799/0.2482, allocations: 422.6 kB / 428.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2482, allocations: 0 / 428.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2482, allocations: 0 / 428.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.2482, allocations: 0 / 428.4 MB, free: 8.777 MB / 334.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.001048/0.2492, allocations: 0.5909 MB / 429 MB, free: 8.152 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.2493, allocations: 8.031 kB / 429 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.324e-05/0.2494, allocations: 70.72 kB / 429.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.581e-05/0.2494, allocations: 40.7 kB / 429.1 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/0.2498, allocations: 223.5 kB / 429.4 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.2499, allocations: 132 kB / 429.5 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.163e-05/0.25, allocations: 32.38 kB / 429.5 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005541/0.2506, allocations: 346.7 kB / 429.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.2506, allocations: 0 / 429.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.2506, allocations: 12 kB / 429.9 MB, free: 7.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.2506, allocations: 8 kB / 429.9 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004277/0.251, allocations: 222.5 kB / 430.1 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.253, allocations: 1.31 MB / 431.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/0.2533, allocations: 154.5 kB / 431.6 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.2535, allocations: 80.83 kB / 431.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.2535, allocations: 4 kB / 431.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.2538, allocations: 157.8 kB / 431.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.683e-06/0.2538, allocations: 0 / 431.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001082/0.2549, allocations: 336.1 kB / 432.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.113e-05/0.2549, allocations: 106.8 kB / 432.2 MB, free: 4.719 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.2552, allocations: 257.8 kB / 432.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.503e-05/0.2553, allocations: 33.7 kB / 432.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.2554, allocations: 212.2 kB / 432.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.187e-05/0.2555, allocations: 79.42 kB / 432.8 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.276e-05/0.2556, allocations: 61.97 kB / 432.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.2557, allocations: 338.8 kB / 433.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.2559, allocations: 76.61 kB / 433.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.2561, allocations: 181.5 kB / 433.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.2565, allocations: 236.7 kB / 433.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2565, allocations: 0 / 433.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006916/0.2572, allocations: 348.3 kB / 434 MB, free: 2.809 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.2572, allocations: 4.344 kB / 434 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2572, allocations: 8 kB / 434 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002597/0.2574, allocations: 56.81 kB / 434.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002546/0.2577, allocations: 59.91 kB / 434.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.2591, allocations: 1.472 MB / 435.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/0.2593, allocations: 43.72 kB / 435.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.937e-05/0.2594, allocations: 23.98 kB / 435.7 MB, free: 1.031 MB / 334.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.0001598/0.2595, allocations: 156.9 kB / 435.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.2596, allocations: 27.8 kB / 435.9 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.409e-05/0.2596, allocations: 34.27 kB / 435.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2596, allocations: 4.062 kB / 435.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.289e-06/0.2596, allocations: 4 kB / 435.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.2596, allocations: 0 / 435.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003258/0.26, allocations: 304.5 kB / 436.2 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.26, allocations: 4 kB / 436.2 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.2602, allocations: 31.98 kB / 436.2 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001817/0.2603, allocations: 60.75 kB / 436.3 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.2604, allocations: 3.938 kB / 436.3 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/0.2615, allocations: 1.308 MB / 437.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2615, allocations: 4.031 kB / 437.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000714/0.2623, allocations: 361.5 kB / 438 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.984e-05/0.2623, allocations: 39.8 kB / 438 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.2624, allocations: 8 kB / 438 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.2626, allocations: 15.98 kB / 438 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.432e-05/0.2626, allocations: 35.88 kB / 438.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.2627, allocations: 4 kB / 438.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001841/0.2628, allocations: 193.3 kB / 438.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2628, allocations: 3.938 kB / 438.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003789/0.2632, allocations: 91.78 kB / 438.3 MB, free: 14.18 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.001072/0.2643, allocations: 0.8863 MB / 439.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006026/0.2649, allocations: 298.4 kB / 439.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2649, allocations: 0 / 439.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.2652, allocations: 198.3 kB / 439.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.2655, allocations: 44.42 kB / 439.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004229/0.2697, allocations: 2.893 MB / 442.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.2701, allocations: 0.7716 MB / 443.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.2702, allocations: 30.27 kB / 443.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.2703, allocations: 103.3 kB / 443.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2703, allocations: 0 / 443.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0382/0.3085, allocations: 6.275 MB / 449.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.75, allocations: 2.234 kB / 449.8 MB, free: 2.617 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 15.8183807679452]