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.001247/0.001247, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001436/0.001436, allocations: 209 kB / 23.73 MB, free: 4.387 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.4/1.4, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001572/0.001572, allocations: 47.94 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2666, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004065/0.2707, allocations: 2.552 MB / 433.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.272, allocations: 0.6833 MB / 434.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.2721, allocations: 7.938 kB / 434.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.2722, allocations: 43.56 kB / 434.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.2724, allocations: 83.27 kB / 434.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003539/0.2727, allocations: 107.8 kB / 434.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000399/0.2731, allocations: 366.5 kB / 434.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.2733, allocations: 60.89 kB / 435 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002575/0.2736, allocations: 143.5 kB / 435.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002099/0.2738, allocations: 139.4 kB / 435.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.432e-05/0.2738, allocations: 32 kB / 435.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.775e-05/0.2739, allocations: 35.98 kB / 435.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.446e-05/0.274, allocations: 71.7 kB / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.2741, allocations: 127.5 kB / 435.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003983/0.2745, allocations: 354.6 kB / 435.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2745, allocations: 0 / 435.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2745, allocations: 0 / 435.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.2745, allocations: 0 / 435.9 MB, free: 1.852 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.001374/0.2759, allocations: 0.5715 MB / 436.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.2759, allocations: 12.03 kB / 436.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.648e-05/0.276, allocations: 54.73 kB / 436.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.2762, allocations: 40.73 kB / 436.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003431/0.2765, allocations: 207 kB / 436.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.2765, allocations: 16.81 kB / 436.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.571e-05/0.2766, allocations: 24.38 kB / 436.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006884/0.2773, allocations: 346.1 kB / 437.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.2773, allocations: 8 kB / 437.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.2773, allocations: 8 kB / 437.1 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.2773, allocations: 4 kB / 437.1 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000756/0.2781, allocations: 269.5 kB / 437.4 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.2797, allocations: 0.9726 MB / 438.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001877/0.2816, allocations: 434.2 kB / 438.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003806/0.282, allocations: 132.8 kB / 438.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.282, allocations: 0 / 438.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.282, allocations: 34.56 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.002e-06/0.282, allocations: 0 / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.00473/0.2868, allocations: 0.9509 MB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.2868, allocations: 59.34 kB / 440 MB, free: 13.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.287, allocations: 224.9 kB / 440.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.119e-05/0.2871, allocations: 29.7 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.2872, allocations: 160.2 kB / 440.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.124e-05/0.2872, allocations: 51.53 kB / 440.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.662e-05/0.2873, allocations: 37.69 kB / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.2875, allocations: 326.8 kB / 440.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003426/0.2878, allocations: 107.9 kB / 440.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.2882, allocations: 129.5 kB / 441 MB, free: 12.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006841/0.2889, allocations: 228 kB / 441.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2889, allocations: 3.938 kB / 441.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002766/0.2916, allocations: 0.6269 MB / 441.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.2917, allocations: 4 kB / 441.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.2917, allocations: 3.938 kB / 441.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007186/0.2924, allocations: 224.6 kB / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.2925, allocations: 31.98 kB / 442.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006848/0.2994, allocations: 2.616 MB / 444.7 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.2997, allocations: 43.95 kB / 444.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.2997, allocations: 4 kB / 444.8 MB, free: 8.547 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.0001552/0.2998, allocations: 137.7 kB / 444.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.168e-05/0.2999, allocations: 19.91 kB / 444.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.103e-05/0.2999, allocations: 21.78 kB / 445 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.2999, allocations: 8.078 kB / 445 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.2999, allocations: 0 / 445 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.3, allocations: 3.984 kB / 445 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003739/0.3003, allocations: 268.5 kB / 445.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3003, allocations: 0 / 445.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.3005, allocations: 23.98 kB / 445.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006584/0.3011, allocations: 220.6 kB / 445.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.3012, allocations: 7.984 kB / 445.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006529/0.3077, allocations: 2.616 MB / 448.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3077, allocations: 0 / 448.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003141/0.3108, allocations: 0.8386 MB / 448.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.529e-05/0.3109, allocations: 23.88 kB / 449 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.266e-05/0.3109, allocations: 8 kB / 449 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002845/0.3112, allocations: 31.97 kB / 449 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.613e-05/0.3112, allocations: 19.86 kB / 449 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.3113, allocations: 4.062 kB / 449 MB, free: 4.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00016/0.3114, allocations: 164.5 kB / 449.2 MB, free: 3.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3114, allocations: 0 / 449.2 MB, free: 3.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000435/0.3118, allocations: 79.89 kB / 449.3 MB, free: 3.879 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.003417/0.3153, allocations: 1.381 MB / 450.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001557/0.3168, allocations: 442.4 kB / 451.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3168, allocations: 0 / 451.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.3179, allocations: 326.6 kB / 451.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.3182, allocations: 42.3 kB / 451.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008277/0.3265, allocations: 3.355 MB / 454.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/0.3266, allocations: 137.8 kB / 454.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.212e-05/0.3267, allocations: 17.47 kB / 454.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.3268, allocations: 71.41 kB / 455 MB, free: 13.96 MB / 366.1 MB Notification: Performance of SimCode: time 1.243e-06/0.3268, allocations: 0 / 455 MB, free: 13.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03889/0.3657, allocations: 7.931 MB / 462.9 MB, free: 6.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.41, allocations: 4.062 kB / 462.9 MB, free: 6.176 MB / 366.1 MB " [Timeout remaining time 647] (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.819862404838204]