Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001667/0.001667, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002059/0.002059, allocations: 213.7 kB / 23.74 MB, free: 4.688 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 / 257.5 MB, free: 8.023 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.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 47.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2432, allocations: 53.36 MB / 431.2 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004332/0.2475, allocations: 2.918 MB / 434.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.2491, allocations: 0.7672 MB / 434.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002054/0.2493, allocations: 8 kB / 434.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.2495, allocations: 51.5 kB / 434.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002001/0.2497, allocations: 91.12 kB / 435 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003681/0.25, allocations: 103.8 kB / 435.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004328/0.2505, allocations: 370.4 kB / 435.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.2507, allocations: 79.7 kB / 435.5 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.2508, allocations: 155.5 kB / 435.7 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002217/0.2511, allocations: 151.2 kB / 435.8 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.384e-05/0.2511, allocations: 32 kB / 435.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.636e-05/0.2512, allocations: 32 kB / 435.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.446e-05/0.2513, allocations: 67.77 kB / 436 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.2514, allocations: 167.2 kB / 436.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004216/0.2518, allocations: 366.9 kB / 436.5 MB, free: 1.535 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2518, allocations: 0 / 436.5 MB, free: 1.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2518, allocations: 0 / 436.5 MB, free: 1.535 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.2519, allocations: 0 / 436.5 MB, free: 1.535 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001039/0.2529, allocations: 0.5417 MB / 437 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.2529, allocations: 8.031 kB / 437 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.253, allocations: 66.72 kB / 437.1 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.096e-05/0.2531, allocations: 40.7 kB / 437.1 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003882/0.2535, allocations: 210.7 kB / 437.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.2536, allocations: 132 kB / 437.5 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.939e-05/0.2537, allocations: 24.38 kB / 437.5 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004847/0.2541, allocations: 305.8 kB / 437.8 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.2542, allocations: 0 / 437.8 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.2542, allocations: 11.98 kB / 437.8 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2542, allocations: 8 kB / 437.8 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003575/0.2546, allocations: 190.5 kB / 438 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.2563, allocations: 1.085 MB / 439.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.2566, allocations: 141.2 kB / 439.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.2568, allocations: 80.83 kB / 439.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.2568, allocations: 0 / 439.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002747/0.2571, allocations: 161.7 kB / 439.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.362e-06/0.2571, allocations: 0 / 439.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001036/0.2581, allocations: 308.2 kB / 439.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.894e-05/0.2582, allocations: 110.8 kB / 439.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002622/0.2585, allocations: 228.9 kB / 440.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.2585, allocations: 29.7 kB / 440.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.2586, allocations: 184.5 kB / 440.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.317e-05/0.2587, allocations: 71.42 kB / 440.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.2588, allocations: 65.69 kB / 440.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.259, allocations: 330.8 kB / 440.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.2591, allocations: 67.97 kB / 440.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.2593, allocations: 140.6 kB / 441 MB, free: 12.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/0.2596, allocations: 192.1 kB / 441.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2596, allocations: 8 kB / 441.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005437/0.2601, allocations: 272.5 kB / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.2601, allocations: 10.33 kB / 441.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.2601, allocations: 4 kB / 441.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002772/0.2604, allocations: 53.03 kB / 441.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.2606, allocations: 51.92 kB / 441.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/0.2621, allocations: 1.469 MB / 443 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.2623, allocations: 35.83 kB / 443 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.2623, allocations: 12.09 kB / 443 MB, free: 10.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001773/0.2625, allocations: 157 kB / 443.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.796e-05/0.2625, allocations: 27.84 kB / 443.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.897e-05/0.2626, allocations: 26.28 kB / 443.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2626, allocations: 3.938 kB / 443.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2626, allocations: 0 / 443.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.2626, allocations: 3.984 kB / 443.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004338/0.263, allocations: 300.4 kB / 443.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.263, allocations: 4 kB / 443.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.2632, allocations: 31.92 kB / 443.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000186/0.2634, allocations: 48.81 kB / 443.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.2634, allocations: 4 kB / 443.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001361/0.2647, allocations: 1.33 MB / 445 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2647, allocations: 3.938 kB / 445 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006731/0.2654, allocations: 317.7 kB / 445.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.026e-05/0.2655, allocations: 43.73 kB / 445.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.807e-05/0.2656, allocations: 8 kB / 445.3 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.2657, allocations: 20.11 kB / 445.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.178e-05/0.2658, allocations: 27.95 kB / 445.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.2658, allocations: 7.984 kB / 445.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.266, allocations: 164.4 kB / 445.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.266, allocations: 0 / 445.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003759/0.2664, allocations: 75.89 kB / 445.6 MB, free: 7.742 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001023/0.2674, allocations: 0.8694 MB / 446.5 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005553/0.2679, allocations: 278.5 kB / 446.8 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2679, allocations: 0.5 kB / 446.8 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002963/0.2682, allocations: 193.4 kB / 447 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.2685, allocations: 48.38 kB / 447 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003921/0.2725, allocations: 2.592 MB / 449.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004845/0.2729, allocations: 0.7558 MB / 450.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.273, allocations: 26.27 kB / 450.4 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.2732, allocations: 91.41 kB / 450.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of SimCode: time 8.91e-07/0.2732, allocations: 0 / 450.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05024/0.3234, allocations: 5.864 MB / 456.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.89, allocations: 6.188 kB / 456.3 MB, free: 12.98 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.444609537022188]