Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001696/0.001696, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001728/0.001728, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.416/1.416, 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.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 51.91 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2403, allocations: 52.18 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004197/0.2445, allocations: 2.9 MB / 425.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00133/0.2458, allocations: 0.7439 MB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.2459, allocations: 8 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.2461, allocations: 47.5 kB / 426.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.2463, allocations: 91.14 kB / 426.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003258/0.2466, allocations: 103.8 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004198/0.247, allocations: 370.4 kB / 426.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.2472, allocations: 87.67 kB / 427 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.2474, allocations: 139.5 kB / 427.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.2476, allocations: 159.3 kB / 427.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.2477, allocations: 32 kB / 427.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.028e-05/0.2477, allocations: 28 kB / 427.3 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.179e-05/0.2478, allocations: 75.75 kB / 427.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.2479, allocations: 167.2 kB / 427.6 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000398/0.2483, allocations: 363 kB / 427.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2483, allocations: 0 / 427.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2484, allocations: 0 / 427.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2484, allocations: 0 / 427.9 MB, free: 9.273 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.0009763/0.2493, allocations: 0.5417 MB / 428.5 MB, free: 8.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2494, allocations: 15.97 kB / 428.5 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.539e-05/0.2494, allocations: 58.73 kB / 428.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.275e-05/0.2495, allocations: 36.75 kB / 428.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.2499, allocations: 206.7 kB / 428.8 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.25, allocations: 132 kB / 428.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.25, allocations: 28.38 kB / 428.9 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004719/0.2505, allocations: 301.8 kB / 429.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2505, allocations: 0 / 429.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.285e-05/0.2506, allocations: 16 kB / 429.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.2506, allocations: 8 kB / 429.2 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003406/0.2509, allocations: 186.5 kB / 429.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.2526, allocations: 1.085 MB / 430.5 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.2529, allocations: 146.6 kB / 430.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.253, allocations: 72.83 kB / 430.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.253, allocations: 4 kB / 430.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002733/0.2533, allocations: 163.8 kB / 430.9 MB, free: 6.094 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.413e-06/0.2533, allocations: 4 kB / 430.9 MB, free: 6.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009657/0.2543, allocations: 299.9 kB / 431.2 MB, free: 5.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.867e-05/0.2543, allocations: 114.7 kB / 431.3 MB, free: 5.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/0.2546, allocations: 232.8 kB / 431.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.2546, allocations: 29.7 kB / 431.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.2547, allocations: 184.5 kB / 431.7 MB, free: 5.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.377e-05/0.2548, allocations: 71.42 kB / 431.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.12e-05/0.2549, allocations: 61.69 kB / 431.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.255, allocations: 338.8 kB / 432.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.2552, allocations: 63.97 kB / 432.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.2554, allocations: 141.4 kB / 432.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.2556, allocations: 193.3 kB / 432.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.2556, allocations: 3.984 kB / 432.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004326/0.2561, allocations: 276.5 kB / 432.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.2561, allocations: 7.938 kB / 432.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2561, allocations: 0 / 432.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.2563, allocations: 61.03 kB / 432.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002103/0.2566, allocations: 47.92 kB / 433 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.258, allocations: 1.472 MB / 434.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.2582, allocations: 31.83 kB / 434.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.2582, allocations: 19.98 kB / 434.5 MB, free: 2.23 MB / 334.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.0001581/0.2584, allocations: 145.8 kB / 434.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.2584, allocations: 23.86 kB / 434.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.278e-05/0.2585, allocations: 34.27 kB / 434.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.2585, allocations: 4 kB / 434.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.2585, allocations: 0 / 434.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.2585, allocations: 0 / 434.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003216/0.2588, allocations: 288.4 kB / 435 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2588, allocations: 0 / 435 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.259, allocations: 43.92 kB / 435 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001859/0.2592, allocations: 48.81 kB / 435.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.2592, allocations: 7.984 kB / 435.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.2604, allocations: 1.314 MB / 436.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2604, allocations: 0 / 436.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006562/0.2611, allocations: 336.2 kB / 436.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.384e-05/0.2611, allocations: 39.78 kB / 436.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.2612, allocations: 8 kB / 436.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.2613, allocations: 12.05 kB / 436.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.63e-05/0.2614, allocations: 39.94 kB / 436.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.2614, allocations: 4 kB / 436.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001491/0.2616, allocations: 164.4 kB / 437 MB, free: 15.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2616, allocations: 0 / 437 MB, free: 15.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003572/0.2619, allocations: 83.84 kB / 437.1 MB, free: 15.48 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.0009445/0.2629, allocations: 0.8668 MB / 437.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005429/0.2634, allocations: 278.4 kB / 438.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2634, allocations: 4 kB / 438.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002875/0.2637, allocations: 198.2 kB / 438.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.264, allocations: 42.92 kB / 438.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003762/0.2678, allocations: 2.599 MB / 441 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.2682, allocations: 0.7519 MB / 441.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.731e-05/0.2683, allocations: 26.27 kB / 441.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.2684, allocations: 87.41 kB / 441.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.2684, allocations: 0 / 441.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04151/0.3099, allocations: 5.863 MB / 447.8 MB, free: 4.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.63, allocations: 3.859 kB / 447.8 MB, free: 4.715 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.225580616854131]