Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 124.5 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002091/0.002091, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.426/1.426, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 47.92 kB / 373 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1121, allocations: 53.33 MB / 426.3 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004979/0.1171, allocations: 3.176 MB / 429.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.1189, allocations: 0.8217 MB / 430.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002831/0.1192, allocations: 7.938 kB / 430.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002504/0.1195, allocations: 63.42 kB / 430.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003964/0.1199, allocations: 111 kB / 430.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005066/0.1204, allocations: 111.8 kB / 430.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005143/0.1209, allocations: 422.1 kB / 431 MB, free: 132 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.1211, allocations: 99.75 kB / 431.1 MB, free: 24 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1957/0.3168, allocations: 163.5 kB / 431.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.3171, allocations: 175.4 kB / 431.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.826e-05/0.3172, allocations: 36.25 kB / 431.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.3173, allocations: 42.05 kB / 431.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.099e-05/0.3173, allocations: 81.08 kB / 431.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.3175, allocations: 188.5 kB / 431.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005322/0.3181, allocations: 429.6 kB / 432.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3181, allocations: 1.5 kB / 432.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3181, allocations: 0.5625 kB / 432.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.3181, allocations: 0 / 432.2 MB, free: 7.48 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.0009889/0.3191, allocations: 0.6603 MB / 432.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.3191, allocations: 9.438 kB / 432.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.981e-05/0.3192, allocations: 70.95 kB / 433 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.3194, allocations: 60.28 kB / 433 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.3197, allocations: 282.8 kB / 433.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.762e-05/0.3198, allocations: 77.41 kB / 433.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.937e-05/0.3198, allocations: 29.53 kB / 433.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004439/0.3203, allocations: 346 kB / 433.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3203, allocations: 0 / 433.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.3203, allocations: 12.53 kB / 433.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.3203, allocations: 8.75 kB / 433.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003797/0.3207, allocations: 225.6 kB / 434 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.3223, allocations: 1.355 MB / 435.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003397/0.3226, allocations: 169.4 kB / 435.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.3228, allocations: 85.73 kB / 435.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.3228, allocations: 4.969 kB / 435.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.3231, allocations: 153.2 kB / 435.7 MB, free: 5.699 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.552e-06/0.3231, allocations: 0 / 435.7 MB, free: 5.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001076/0.3242, allocations: 407.5 kB / 436.1 MB, free: 5.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.3242, allocations: 109.6 kB / 436.2 MB, free: 5.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.3245, allocations: 267.1 kB / 436.5 MB, free: 5.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.3245, allocations: 30.11 kB / 436.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.763e-05/0.3246, allocations: 212.7 kB / 436.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.783e-05/0.3246, allocations: 81.44 kB / 436.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.718e-05/0.3247, allocations: 60.8 kB / 436.9 MB, free: 5.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.249e-05/0.3248, allocations: 339.2 kB / 437.2 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.3249, allocations: 77.3 kB / 437.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.3251, allocations: 182.1 kB / 437.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002938/0.3254, allocations: 230.3 kB / 437.7 MB, free: 4.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3254, allocations: 0 / 437.7 MB, free: 4.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006363/0.3261, allocations: 348.3 kB / 438 MB, free: 4.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3261, allocations: 6.281 kB / 438 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3261, allocations: 4.031 kB / 438 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002609/0.3263, allocations: 57 kB / 438.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.3266, allocations: 68.72 kB / 438.2 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000979/0.3276, allocations: 1.559 MB / 439.7 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002538/0.3278, allocations: 49.61 kB / 439.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.3279, allocations: 11 kB / 439.8 MB, free: 2.949 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.0001154/0.328, allocations: 155.6 kB / 439.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.328, allocations: 25.95 kB / 440 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.764e-05/0.3281, allocations: 33.09 kB / 440 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.3281, allocations: 4.031 kB / 440 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3281, allocations: 0.875 kB / 440 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3281, allocations: 5.156 kB / 440 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003038/0.3284, allocations: 348.6 kB / 440.3 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3284, allocations: 0 / 440.3 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.3286, allocations: 35.8 kB / 440.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001831/0.3287, allocations: 54.84 kB / 440.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.3288, allocations: 12.05 kB / 440.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008229/0.3296, allocations: 1.418 MB / 441.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3296, allocations: 0 / 441.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006504/0.3302, allocations: 350.3 kB / 442.2 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.786e-05/0.3303, allocations: 118.3 kB / 442.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.678e-05/0.3304, allocations: 6.938 kB / 442.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.3305, allocations: 21.64 kB / 442.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.067e-05/0.3306, allocations: 34.81 kB / 442.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.3307, allocations: 8.844 kB / 442.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001521/0.3308, allocations: 186.6 kB / 442.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3308, allocations: 0 / 442.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003884/0.3312, allocations: 93.66 kB / 442.7 MB, free: 0.6758 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.0008393/0.332, allocations: 0.885 MB / 443.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006295/0.3327, allocations: 306 kB / 443.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3327, allocations: 1.031 kB / 443.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.333, allocations: 199.6 kB / 444 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.3333, allocations: 35.38 kB / 444.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004715/0.338, allocations: 2.92 MB / 447 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.3384, allocations: 0.7738 MB / 447.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.3385, allocations: 29.25 kB / 447.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.3387, allocations: 96.62 kB / 447.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3387, allocations: 1.125 kB / 447.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04803/0.3867, allocations: 6.1 MB / 454 MB, free: 12.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.79, allocations: 5.469 kB / 454 MB, free: 12.13 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 14.917272967053577]