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.001648/0.001648, allocations: 113.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.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.002035/0.002035, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.512/1.512, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.001552/0.001552, allocations: 51.91 kB / 377.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2472, allocations: 53.35 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003937/0.2511, allocations: 2.753 MB / 433.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.2524, allocations: 0.7206 MB / 434.6 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.2525, allocations: 7.938 kB / 434.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.2526, allocations: 47.58 kB / 434.7 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.2528, allocations: 87.2 kB / 434.8 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.2531, allocations: 107.8 kB / 434.9 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000404/0.2535, allocations: 362.6 kB / 435.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.2537, allocations: 60.89 kB / 435.3 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002658/0.254, allocations: 147.5 kB / 435.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002173/0.2542, allocations: 167.3 kB / 435.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.794e-05/0.2542, allocations: 28 kB / 435.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.924e-05/0.2543, allocations: 43.98 kB / 435.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.89e-05/0.2544, allocations: 59.77 kB / 435.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.2545, allocations: 151.3 kB / 435.9 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004046/0.2549, allocations: 351 kB / 436.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2549, allocations: 0 / 436.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2549, allocations: 0 / 436.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.255, allocations: 0 / 436.2 MB, free: 1.758 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.001459/0.2564, allocations: 0.5793 MB / 436.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2564, allocations: 8.031 kB / 436.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.923e-05/0.2565, allocations: 62.72 kB / 436.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.2567, allocations: 36.75 kB / 436.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003376/0.257, allocations: 203 kB / 437.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.257, allocations: 12.81 kB / 437.1 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.843e-05/0.2571, allocations: 28.38 kB / 437.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000657/0.2577, allocations: 298.7 kB / 437.4 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2577, allocations: 0 / 437.4 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.2578, allocations: 15.98 kB / 437.4 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.2578, allocations: 4 kB / 437.4 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007925/0.2586, allocations: 273.5 kB / 437.7 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.2603, allocations: 1.027 MB / 438.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/0.2623, allocations: 434.2 kB / 439.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003845/0.2627, allocations: 136.8 kB / 439.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.2627, allocations: 4 kB / 439.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.2627, allocations: 30.56 kB / 439.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.2627, allocations: 0 / 439.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.005111/0.2678, allocations: 0.95 MB / 440.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.2679, allocations: 55.39 kB / 440.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.2681, allocations: 220.9 kB / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.2681, allocations: 33.7 kB / 440.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.2682, allocations: 164.2 kB / 440.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.466e-05/0.2683, allocations: 43.64 kB / 440.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.922e-05/0.2684, allocations: 41.59 kB / 440.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.2685, allocations: 330.8 kB / 441.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003409/0.2688, allocations: 103.9 kB / 441.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003465/0.2692, allocations: 128 kB / 441.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006553/0.2698, allocations: 229.5 kB / 441.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.2698, allocations: 3.938 kB / 441.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002929/0.2728, allocations: 0.6297 MB / 442.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2728, allocations: 4 kB / 442.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.2728, allocations: 4 kB / 442.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007071/0.2735, allocations: 224.7 kB / 442.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.2737, allocations: 31.97 kB / 442.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006949/0.2806, allocations: 2.655 MB / 445.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.2809, allocations: 39.94 kB / 445.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.2809, allocations: 11.92 kB / 445.2 MB, free: 8.41 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.0001516/0.2811, allocations: 129.8 kB / 445.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.187e-05/0.2811, allocations: 19.91 kB / 445.3 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.146e-05/0.2812, allocations: 25.77 kB / 445.4 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.2812, allocations: 0 / 445.4 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.2812, allocations: 0 / 445.4 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.2812, allocations: 4 kB / 445.4 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003831/0.2816, allocations: 300.4 kB / 445.7 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2816, allocations: 4 kB / 445.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.2817, allocations: 23.98 kB / 445.7 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006529/0.2824, allocations: 224.6 kB / 445.9 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.2824, allocations: 4 kB / 445.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006707/0.2891, allocations: 2.643 MB / 448.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2891, allocations: 0 / 448.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003315/0.2924, allocations: 0.8434 MB / 449.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.074e-05/0.2925, allocations: 23.88 kB / 449.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.563e-05/0.2925, allocations: 4 kB / 449.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000297/0.2928, allocations: 28.03 kB / 449.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.366e-05/0.2929, allocations: 24 kB / 449.5 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.2929, allocations: 4 kB / 449.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001567/0.293, allocations: 164.5 kB / 449.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.293, allocations: 0 / 449.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004432/0.2935, allocations: 75.89 kB / 449.7 MB, free: 3.691 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.003603/0.2971, allocations: 1.384 MB / 451.1 MB, free: 2.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.2987, allocations: 441.6 kB / 451.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.2987, allocations: 0 / 451.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.2998, allocations: 334.5 kB / 451.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.3001, allocations: 32.58 kB / 451.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00894/0.3091, allocations: 3.356 MB / 455.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.3095, allocations: 0.7476 MB / 456 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.935e-05/0.3095, allocations: 13.48 kB / 456 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.3097, allocations: 67.41 kB / 456.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3097, allocations: 0 / 456.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04168/0.3513, allocations: 7.509 MB / 463.6 MB, free: 5.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.12, allocations: 3.938 kB / 463.6 MB, free: 5.809 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: 15.697380491066724]