Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.001663/0.001663, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002089/0.002089, allocations: 208.6 kB / 23.73 MB, free: 4.523 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.385/1.385, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 47.94 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.248, allocations: 53.36 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003945/0.252, allocations: 2.56 MB / 433.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.2533, allocations: 0.6756 MB / 434.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.2534, allocations: 4 kB / 434.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.2535, allocations: 47.56 kB / 434.4 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.2537, allocations: 79.28 kB / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003495/0.254, allocations: 115.7 kB / 434.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004858/0.2545, allocations: 358.5 kB / 434.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.2547, allocations: 68.89 kB / 435 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002718/0.255, allocations: 147.5 kB / 435.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.2552, allocations: 167.3 kB / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.969e-05/0.2553, allocations: 32 kB / 435.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.779e-05/0.2554, allocations: 32 kB / 435.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.279e-05/0.2554, allocations: 71.8 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.2556, allocations: 127.4 kB / 435.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003973/0.256, allocations: 346.7 kB / 435.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.256, allocations: 4 kB / 435.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.256, allocations: 0 / 435.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.256, allocations: 0 / 435.9 MB, free: 1.832 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001482/0.2575, allocations: 0.5793 MB / 436.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.2575, allocations: 8.031 kB / 436.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.32e-05/0.2576, allocations: 54.73 kB / 436.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001646/0.2577, allocations: 40.73 kB / 436.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.2581, allocations: 202.9 kB / 436.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.2581, allocations: 16.81 kB / 436.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/0.2581, allocations: 20.38 kB / 436.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007068/0.2588, allocations: 362.1 kB / 437.1 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2589, allocations: 0 / 437.1 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/0.2589, allocations: 8 kB / 437.2 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.2589, allocations: 8 kB / 437.2 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007765/0.2597, allocations: 261.6 kB / 437.4 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.2613, allocations: 0.9687 MB / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002005/0.2633, allocations: 430.2 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003973/0.2637, allocations: 148.7 kB / 439 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.2637, allocations: 0 / 439 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.2638, allocations: 34.56 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 9.92e-07/0.2638, allocations: 0 / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.00533/0.2691, allocations: 0.9505 MB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.2691, allocations: 51.41 kB / 440 MB, free: 13.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002197/0.2694, allocations: 224.8 kB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.2694, allocations: 33.7 kB / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.2695, allocations: 156.2 kB / 440.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.131e-05/0.2695, allocations: 55.52 kB / 440.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.333e-05/0.2696, allocations: 41.64 kB / 440.5 MB, free: 13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2698, allocations: 330.8 kB / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003478/0.2701, allocations: 99.94 kB / 440.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003574/0.2705, allocations: 133.5 kB / 441 MB, free: 12.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007188/0.2712, allocations: 224.2 kB / 441.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.2712, allocations: 7.938 kB / 441.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003118/0.2743, allocations: 0.6307 MB / 441.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.2743, allocations: 4 kB / 441.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.2743, allocations: 4 kB / 441.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007612/0.2751, allocations: 216.7 kB / 442.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.2753, allocations: 35.97 kB / 442.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007148/0.2824, allocations: 2.616 MB / 444.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002906/0.2827, allocations: 35.91 kB / 444.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.2828, allocations: 7.984 kB / 444.8 MB, free: 8.527 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001606/0.2829, allocations: 137.7 kB / 444.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.309e-05/0.283, allocations: 19.97 kB / 445 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.517e-05/0.283, allocations: 25.77 kB / 445 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.283, allocations: 4 kB / 445 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.283, allocations: 0 / 445 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.283, allocations: 96 / 445 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.2834, allocations: 264.5 kB / 445.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2834, allocations: 0 / 445.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001641/0.2836, allocations: 35.97 kB / 445.3 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006643/0.2843, allocations: 216.7 kB / 445.5 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.2843, allocations: 4 kB / 445.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006921/0.2912, allocations: 2.62 MB / 448.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2912, allocations: 0 / 448.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00355/0.2948, allocations: 0.8468 MB / 449 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-05/0.2948, allocations: 19.89 kB / 449 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.894e-05/0.2948, allocations: 8 kB / 449 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000311/0.2951, allocations: 39.97 kB / 449 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.02e-05/0.2952, allocations: 11.98 kB / 449 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.2952, allocations: 7.984 kB / 449.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.2954, allocations: 160.5 kB / 449.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2954, allocations: 0 / 449.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004431/0.2958, allocations: 79.89 kB / 449.3 MB, free: 3.855 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003791/0.2996, allocations: 1.386 MB / 450.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.3012, allocations: 435.7 kB / 451.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3012, allocations: 0 / 451.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.3023, allocations: 326.5 kB / 451.4 MB, free: 1.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.3027, allocations: 40.58 kB / 451.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008939/0.3116, allocations: 3.363 MB / 454.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001311/0.3118, allocations: 133.8 kB / 455 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.719e-05/0.3119, allocations: 21.47 kB / 455 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.312, allocations: 67.41 kB / 455 MB, free: 13.95 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.312, allocations: 0 / 455 MB, free: 13.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03782/0.3498, allocations: 7.968 MB / 463 MB, free: 6.121 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.23, allocations: 15.73 kB / 463 MB, free: 6.105 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.620598497014726]