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.001311/0.001311, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.001351/0.001351, allocations: 212.3 kB / 23.74 MB, free: 4.66 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.424/1.424, allocations: 230.5 MB / 257.4 MB, free: 8.02 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 63.88 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2492, allocations: 53.42 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004588/0.2538, allocations: 3.185 MB / 434.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.2554, allocations: 0.8372 MB / 435.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001863/0.2556, allocations: 4 kB / 435.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.2558, allocations: 63.42 kB / 435.3 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.256, allocations: 103 kB / 435.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004327/0.2564, allocations: 123.8 kB / 435.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004947/0.2569, allocations: 426.1 kB / 435.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002232/0.2572, allocations: 104.3 kB / 436 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002782/0.2574, allocations: 163.4 kB / 436.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002638/0.2577, allocations: 171.2 kB / 436.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.127e-05/0.2578, allocations: 35.98 kB / 436.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.228e-05/0.2579, allocations: 40 kB / 436.4 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.217e-05/0.2579, allocations: 79.69 kB / 436.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.2581, allocations: 195.1 kB / 436.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005255/0.2587, allocations: 434.6 kB / 437.1 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2587, allocations: 4 kB / 437.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2587, allocations: 0 / 437.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.2587, allocations: 3.938 kB / 437.1 MB, free: 0.7461 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.001169/0.2599, allocations: 0.5753 MB / 437.7 MB, free: 140 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.2599, allocations: 12.03 kB / 437.7 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001014/0.26, allocations: 74.72 kB / 437.8 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002632/0.2603, allocations: 52.69 kB / 437.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005196/0.2608, allocations: 227.5 kB / 438.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.2609, allocations: 128 kB / 438.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.014e-05/0.261, allocations: 32.38 kB / 438.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006679/0.2617, allocations: 342.7 kB / 438.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.2617, allocations: 0 / 438.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.895e-05/0.2617, allocations: 16 kB / 438.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.2617, allocations: 8 kB / 438.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004609/0.2622, allocations: 218.5 kB / 438.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002036/0.2642, allocations: 1.322 MB / 440.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003489/0.2646, allocations: 162.5 kB / 440.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.2647, allocations: 80.83 kB / 440.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.2648, allocations: 8 kB / 440.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003035/0.2651, allocations: 157.2 kB / 440.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.333e-06/0.2651, allocations: 0 / 440.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001092/0.2662, allocations: 326.5 kB / 440.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.394e-05/0.2662, allocations: 110.8 kB / 440.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/0.2665, allocations: 261.8 kB / 441.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.232e-05/0.2666, allocations: 37.69 kB / 441.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.2667, allocations: 212.2 kB / 441.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.391e-05/0.2668, allocations: 79.38 kB / 441.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.643e-05/0.2669, allocations: 65.95 kB / 441.6 MB, free: 12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.2671, allocations: 338.8 kB / 441.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.2672, allocations: 72.62 kB / 442 MB, free: 11.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.2675, allocations: 177.5 kB / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003591/0.2678, allocations: 239.5 kB / 442.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2678, allocations: 0 / 442.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006814/0.2685, allocations: 348.3 kB / 442.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.2685, allocations: 4 kB / 442.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.2685, allocations: 4.344 kB / 442.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002738/0.2688, allocations: 56.81 kB / 442.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002541/0.2691, allocations: 63.91 kB / 442.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/0.2705, allocations: 1.46 MB / 444.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.2708, allocations: 51.88 kB / 444.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.2708, allocations: 16 kB / 444.4 MB, free: 8.992 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.0001701/0.271, allocations: 152.1 kB / 444.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.169e-05/0.271, allocations: 27.8 kB / 444.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.865e-05/0.2711, allocations: 34.27 kB / 444.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2711, allocations: 3.984 kB / 444.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2711, allocations: 8 kB / 444.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.2711, allocations: 3.984 kB / 444.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003422/0.2714, allocations: 308.4 kB / 444.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.2714, allocations: 0 / 444.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.2716, allocations: 35.97 kB / 444.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001943/0.2718, allocations: 60.75 kB / 445 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.2718, allocations: 0 / 445 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.2731, allocations: 1.318 MB / 446.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.2731, allocations: 4.031 kB / 446.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007351/0.2738, allocations: 359.6 kB / 446.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.852e-05/0.2739, allocations: 39.81 kB / 446.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.2739, allocations: 7.984 kB / 446.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.2741, allocations: 15.98 kB / 446.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.4e-05/0.2742, allocations: 31.89 kB / 446.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.2742, allocations: 7.984 kB / 446.8 MB, free: 6.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.2744, allocations: 185.2 kB / 447 MB, free: 6.227 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2744, allocations: 4.062 kB / 447 MB, free: 6.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000396/0.2748, allocations: 87.84 kB / 447 MB, free: 6.137 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.001075/0.2759, allocations: 0.8863 MB / 447.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00065/0.2765, allocations: 306.6 kB / 448.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2765, allocations: 0 / 448.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000308/0.2769, allocations: 202.7 kB / 448.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.2771, allocations: 47.11 kB / 448.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.2815, allocations: 2.913 MB / 451.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.2819, allocations: 0.7675 MB / 452.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.282, allocations: 30.28 kB / 452.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.2821, allocations: 95.41 kB / 452.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2821, allocations: 0 / 452.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04117/0.3233, allocations: 6.297 MB / 458.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.74, allocations: 8.188 kB / 458.6 MB, free: 10.5 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/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: 15.830606968142092]