Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.001262/0.001262, allocations: 112 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.001437/0.001437, 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.372/1.372, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 47.92 kB / 370.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2582, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004139/0.2623, allocations: 2.74 MB / 425.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.2635, allocations: 0.6701 MB / 426 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.2637, allocations: 7.938 kB / 426 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.2638, allocations: 39.58 kB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.264, allocations: 83.27 kB / 426.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.2643, allocations: 99.8 kB / 426.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004206/0.2647, allocations: 362.5 kB / 426.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.2649, allocations: 68.89 kB / 426.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000227/0.2651, allocations: 135.5 kB / 426.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002366/0.2654, allocations: 167.4 kB / 427 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.078e-05/0.2654, allocations: 32 kB / 427 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.042e-05/0.2655, allocations: 28 kB / 427 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.2655, allocations: 71.75 kB / 427.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.2657, allocations: 147.3 kB / 427.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.2661, allocations: 343.1 kB / 427.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2661, allocations: 0 / 427.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2661, allocations: 3.938 kB / 427.6 MB, free: 9.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.2661, allocations: 0 / 427.6 MB, free: 9.637 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.001576/0.2677, allocations: 0.5676 MB / 428.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.2678, allocations: 16.03 kB / 428.2 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.975e-05/0.2678, allocations: 50.73 kB / 428.2 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.733e-05/0.2679, allocations: 32.75 kB / 428.3 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004112/0.2683, allocations: 203 kB / 428.5 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.2683, allocations: 16.81 kB / 428.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.2684, allocations: 20.38 kB / 428.5 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007461/0.2691, allocations: 302.7 kB / 428.8 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.2691, allocations: 0 / 428.8 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.2692, allocations: 15.94 kB / 428.8 MB, free: 8.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.2692, allocations: 7.938 kB / 428.8 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007797/0.2699, allocations: 265.6 kB / 429.1 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.2717, allocations: 1.027 MB / 430.1 MB, free: 6.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001953/0.2736, allocations: 426.3 kB / 430.5 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003916/0.274, allocations: 136.7 kB / 430.6 MB, free: 6.414 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.274, allocations: 4 kB / 430.7 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/0.2741, allocations: 38.53 kB / 430.7 MB, free: 6.363 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.2741, allocations: 4 kB / 430.7 MB, free: 6.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.005108/0.2792, allocations: 0.9431 MB / 431.6 MB, free: 5.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.2792, allocations: 55.34 kB / 431.7 MB, free: 5.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.2795, allocations: 216.1 kB / 431.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.2795, allocations: 29.7 kB / 431.9 MB, free: 5.082 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.2796, allocations: 156.2 kB / 432.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.283e-05/0.2797, allocations: 55.52 kB / 432.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.407e-05/0.2798, allocations: 45.69 kB / 432.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.2799, allocations: 330.8 kB / 432.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003471/0.2803, allocations: 103.9 kB / 432.6 MB, free: 4.383 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003561/0.2806, allocations: 129.1 kB / 432.7 MB, free: 4.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006627/0.2813, allocations: 225.5 kB / 433 MB, free: 4.027 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.2813, allocations: 7.938 kB / 433 MB, free: 4.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003056/0.2844, allocations: 0.6307 MB / 433.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.2844, allocations: 6.5 kB / 433.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.2844, allocations: 4 kB / 433.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007082/0.2851, allocations: 224.6 kB / 433.8 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.2853, allocations: 31.98 kB / 433.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00733/0.2926, allocations: 2.632 MB / 436.5 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.2929, allocations: 39.89 kB / 436.5 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.2929, allocations: 7.984 kB / 436.5 MB, free: 332 kB / 334.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.0001633/0.2931, allocations: 141.8 kB / 436.7 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.786e-05/0.2931, allocations: 15.91 kB / 436.7 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.734e-05/0.2932, allocations: 21.47 kB / 436.7 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.2932, allocations: 4 kB / 436.7 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2932, allocations: 7.922 kB / 436.7 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.2932, allocations: 0 / 436.7 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004006/0.2936, allocations: 296.5 kB / 437 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2936, allocations: 3.984 kB / 437 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001543/0.2937, allocations: 27.98 kB / 437 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000664/0.2944, allocations: 220.7 kB / 437.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.461e-05/0.2944, allocations: 7.984 kB / 437.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006935/0.3014, allocations: 2.64 MB / 439.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3014, allocations: 0 / 439.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003397/0.3048, allocations: 0.8395 MB / 440.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.947e-05/0.3048, allocations: 27.89 kB / 440.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.3048, allocations: 4 kB / 440.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002953/0.3051, allocations: 31.97 kB / 440.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.3052, allocations: 11.98 kB / 440.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.3052, allocations: 3.984 kB / 440.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002225/0.3054, allocations: 165.6 kB / 441 MB, free: 11.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3054, allocations: 4 kB / 441 MB, free: 11.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004578/0.3059, allocations: 75.89 kB / 441.1 MB, free: 11.6 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.003834/0.3097, allocations: 1.391 MB / 442.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.3114, allocations: 438.4 kB / 442.9 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3114, allocations: 0 / 442.9 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.3126, allocations: 330.5 kB / 443.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.313, allocations: 32.59 kB / 443.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008955/0.322, allocations: 3.338 MB / 446.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.3223, allocations: 0.7437 MB / 447.3 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.039e-05/0.3224, allocations: 13.48 kB / 447.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.3225, allocations: 71.41 kB / 447.4 MB, free: 5.098 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3225, allocations: 0 / 447.4 MB, free: 5.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03946/0.362, allocations: 7.48 MB / 454.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.78, allocations: 4.062 kB / 454.9 MB, free: 13.78 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 15.158407809911296]