Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001636/0.001636, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002171/0.002171, allocations: 213.9 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.623/1.623, allocations: 230.5 MB / 257.4 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 71.89 kB / 377.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2852, allocations: 53.41 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003958/0.2891, allocations: 2.544 MB / 433.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.2904, allocations: 0.6872 MB / 434.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.2905, allocations: 7.938 kB / 434.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001612/0.2907, allocations: 43.58 kB / 434.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.2908, allocations: 83.27 kB / 434.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.2912, allocations: 111.8 kB / 434.6 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000389/0.2916, allocations: 354.6 kB / 435 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.2917, allocations: 64.89 kB / 435 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002687/0.292, allocations: 143.5 kB / 435.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002036/0.2922, allocations: 151.3 kB / 435.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.415e-05/0.2923, allocations: 32 kB / 435.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.516e-05/0.2924, allocations: 32 kB / 435.4 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.2924, allocations: 67.73 kB / 435.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.2926, allocations: 127.4 kB / 435.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004047/0.293, allocations: 354.6 kB / 435.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.293, allocations: 0 / 435.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.293, allocations: 0 / 435.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.293, allocations: 0 / 435.9 MB, free: 1.668 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.001437/0.2944, allocations: 0.5754 MB / 436.5 MB, free: 1.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.2944, allocations: 15.98 kB / 436.5 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.039e-05/0.2945, allocations: 54.73 kB / 436.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.2947, allocations: 40.73 kB / 436.6 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.295, allocations: 203 kB / 436.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.2951, allocations: 12.81 kB / 436.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.432e-05/0.2951, allocations: 20.38 kB / 436.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006897/0.2958, allocations: 358.1 kB / 437.2 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.2958, allocations: 0 / 437.2 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.2958, allocations: 8 kB / 437.2 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.2958, allocations: 8 kB / 437.2 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007708/0.2966, allocations: 277.5 kB / 437.5 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001742/0.2983, allocations: 0.9688 MB / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.3002, allocations: 426.2 kB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003867/0.3006, allocations: 144.7 kB / 439 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.3006, allocations: 0 / 439 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.3007, allocations: 42.55 kB / 439 MB, free: 14.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.3007, allocations: 0 / 439 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.004761/0.3054, allocations: 0.9392 MB / 440 MB, free: 13.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.3055, allocations: 55.41 kB / 440 MB, free: 13.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002398/0.3057, allocations: 228.8 kB / 440.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.3057, allocations: 29.7 kB / 440.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.3059, allocations: 160.2 kB / 440.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.3059, allocations: 55.52 kB / 440.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.335e-05/0.306, allocations: 41.69 kB / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.3062, allocations: 326.8 kB / 440.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003847/0.3066, allocations: 103.9 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003601/0.3069, allocations: 129.5 kB / 441.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006821/0.3076, allocations: 228.2 kB / 441.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3076, allocations: 3.938 kB / 441.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00285/0.3105, allocations: 0.6308 MB / 441.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3105, allocations: 4 kB / 441.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3105, allocations: 0 / 441.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007204/0.3112, allocations: 216.7 kB / 442.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.3114, allocations: 35.98 kB / 442.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006876/0.3182, allocations: 2.619 MB / 444.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.3185, allocations: 31.88 kB / 444.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.658e-05/0.3186, allocations: 11.98 kB / 444.8 MB, free: 8.359 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.0001679/0.3187, allocations: 134.6 kB / 445 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.275e-05/0.3188, allocations: 23.97 kB / 445 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.334e-05/0.3188, allocations: 21.77 kB / 445 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3188, allocations: 0 / 445 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.3188, allocations: 4 kB / 445 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3188, allocations: 0 / 445 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003641/0.3192, allocations: 268.5 kB / 445.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3192, allocations: 7.875 kB / 445.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.3194, allocations: 27.97 kB / 445.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006604/0.32, allocations: 232.7 kB / 445.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.32, allocations: 0 / 445.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00673/0.3268, allocations: 2.612 MB / 448.2 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.932e-06/0.3268, allocations: 3.984 kB / 448.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005141/0.3319, allocations: 0.8356 MB / 449 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.332, allocations: 23.89 kB / 449 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/0.3321, allocations: 0 / 449 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004702/0.3325, allocations: 36.03 kB / 449.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.61e-05/0.3326, allocations: 11.92 kB / 449.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/0.3326, allocations: 7.984 kB / 449.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002544/0.3329, allocations: 160.5 kB / 449.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3329, allocations: 0 / 449.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008192/0.3337, allocations: 79.89 kB / 449.3 MB, free: 3.695 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.005011/0.3387, allocations: 1.395 MB / 450.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002005/0.3407, allocations: 432.9 kB / 451.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.3407, allocations: 4 kB / 451.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.3423, allocations: 322.6 kB / 451.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006476/0.343, allocations: 36.59 kB / 451.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/0.3564, allocations: 3.355 MB / 454.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.3566, allocations: 137.8 kB / 455 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001453/0.3567, allocations: 17.47 kB / 455 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.3569, allocations: 71.42 kB / 455.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3569, allocations: 3.938 kB / 455.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0507/0.4076, allocations: 7.917 MB / 463 MB, free: 5.977 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.69, allocations: 9.234 kB / 463 MB, free: 5.969 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.408593628089875]