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.001495/0.001495, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001335/0.001335, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.418/1.418, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001574/0.001574, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09721, allocations: 53.33 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004583/0.1018, allocations: 2.898 MB / 429.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.1034, allocations: 0.7712 MB / 430 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002338/0.1036, allocations: 7.938 kB / 430 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001973/0.1038, allocations: 51.5 kB / 430.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002862/0.1041, allocations: 91.19 kB / 430.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000378/0.1045, allocations: 99.75 kB / 430.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004875/0.1049, allocations: 370.4 kB / 430.6 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.1051, allocations: 87.28 kB / 430.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.1053, allocations: 139.5 kB / 430.8 MB, free: 252 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002312/0.1056, allocations: 155.4 kB / 431 MB, free: 96 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.261e-05/0.1056, allocations: 32 kB / 431 MB, free: 64 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.184e-05/0.1057, allocations: 28 kB / 431 MB, free: 36 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1905/0.2961, allocations: 67.75 kB / 431.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.2964, allocations: 164.5 kB / 431.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000453/0.2968, allocations: 371 kB / 431.6 MB, free: 7.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2968, allocations: 0 / 431.6 MB, free: 7.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.2968, allocations: 0.5312 kB / 431.6 MB, free: 7.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.2968, allocations: 0 / 431.6 MB, free: 7.914 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009074/0.2977, allocations: 0.6104 MB / 432.2 MB, free: 7.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.2978, allocations: 11.34 kB / 432.2 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.857e-05/0.2978, allocations: 67.17 kB / 432.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.266e-05/0.2979, allocations: 40.33 kB / 432.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.2982, allocations: 264.4 kB / 432.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.316e-05/0.2983, allocations: 80.06 kB / 432.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.2983, allocations: 31.5 kB / 432.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004207/0.2988, allocations: 301.5 kB / 433 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2988, allocations: 1.75 kB / 433 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.657e-05/0.2988, allocations: 13.34 kB / 433 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2988, allocations: 6.281 kB / 433 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003002/0.2991, allocations: 186.8 kB / 433.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.3004, allocations: 1.127 MB / 434.3 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002788/0.3007, allocations: 156.7 kB / 434.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/0.3008, allocations: 70.64 kB / 434.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.3008, allocations: 2.188 kB / 434.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/0.3011, allocations: 162.3 kB / 434.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.3011, allocations: 0 / 434.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00101/0.3021, allocations: 384.1 kB / 435.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.3022, allocations: 110 kB / 435.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/0.3024, allocations: 221.8 kB / 435.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.3024, allocations: 33.42 kB / 435.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.831e-05/0.3025, allocations: 183.4 kB / 435.6 MB, free: 5.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.771e-05/0.3025, allocations: 73.41 kB / 435.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.365e-05/0.3026, allocations: 60.12 kB / 435.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.997e-05/0.3027, allocations: 337.3 kB / 436.1 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.3028, allocations: 65.12 kB / 436.2 MB, free: 5.402 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.3029, allocations: 138.4 kB / 436.3 MB, free: 5.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.3032, allocations: 190.1 kB / 436.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3032, allocations: 0.5 kB / 436.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003963/0.3036, allocations: 277.1 kB / 436.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.3036, allocations: 6.469 kB / 436.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3036, allocations: 3.766 kB / 436.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002721/0.3038, allocations: 63.42 kB / 436.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002137/0.3041, allocations: 49.61 kB / 436.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.3051, allocations: 1.564 MB / 438.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002388/0.3053, allocations: 38.44 kB / 438.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.3053, allocations: 12.73 kB / 438.5 MB, free: 3.68 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.000114/0.3055, allocations: 153.4 kB / 438.6 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.49e-05/0.3055, allocations: 23.39 kB / 438.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.707e-05/0.3055, allocations: 28.61 kB / 438.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3055, allocations: 7.359 kB / 438.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.3055, allocations: 0 / 438.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3056, allocations: 1.375 kB / 438.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002776/0.3058, allocations: 326.2 kB / 439 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3058, allocations: 0 / 439 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.306, allocations: 38.78 kB / 439.1 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000181/0.3062, allocations: 57.83 kB / 439.1 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.3062, allocations: 2.719 kB / 439.1 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008069/0.307, allocations: 1.42 MB / 440.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.307, allocations: 0 / 440.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005737/0.3076, allocations: 334.6 kB / 440.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.923e-05/0.3077, allocations: 114.6 kB / 441 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.343e-05/0.3077, allocations: 9.484 kB / 441 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.3079, allocations: 18.06 kB / 441 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.541e-05/0.308, allocations: 27.11 kB / 441 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.308, allocations: 11.19 kB / 441 MB, free: 1.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001293/0.3081, allocations: 164 kB / 441.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3081, allocations: 0 / 441.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003645/0.3085, allocations: 86.81 kB / 441.3 MB, free: 1.645 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.000778/0.3092, allocations: 0.8609 MB / 442.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005108/0.3097, allocations: 282.4 kB / 442.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3098, allocations: 0 / 442.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002511/0.31, allocations: 192.7 kB / 442.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.3103, allocations: 39.52 kB / 442.6 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003529/0.3138, allocations: 2.602 MB / 445.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.3142, allocations: 0.7616 MB / 446 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.795e-05/0.3143, allocations: 27.06 kB / 446 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.3144, allocations: 82.17 kB / 446.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3144, allocations: 1.188 kB / 446.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03825/0.3527, allocations: 5.695 MB / 451.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.77, allocations: 2.094 kB / 451.8 MB, free: 13.4 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.276060245931149]