Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001304/0.001304, allocations: 103.6 kB / 21.18 MB, free: 472 kB / 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.001553/0.001553, allocations: 214.4 kB / 24.47 MB, free: 3.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 207.7 MB / 235.3 MB, free: 9.773 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 58.52 kB / 347.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2532, allocations: 49.15 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003249/0.2565, allocations: 2.492 MB / 398.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.2576, allocations: 0.6839 MB / 399.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.2577, allocations: 4.156 kB / 399.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.2578, allocations: 41.3 kB / 399.6 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001289/0.258, allocations: 82.97 kB / 399.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.2583, allocations: 107 kB / 399.7 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003474/0.2586, allocations: 359.1 kB / 400.1 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.2588, allocations: 60.22 kB / 400.2 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002426/0.259, allocations: 146.2 kB / 400.3 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002076/0.2593, allocations: 145.3 kB / 400.4 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.41e-05/0.2593, allocations: 31.28 kB / 400.5 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.762e-05/0.2594, allocations: 29.5 kB / 400.5 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.811e-05/0.2594, allocations: 70.58 kB / 400.6 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.2596, allocations: 125.6 kB / 400.7 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003984/0.26, allocations: 345.5 kB / 401 MB, free: 6.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.26, allocations: 4 kB / 401 MB, free: 6.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.26, allocations: 0 / 401 MB, free: 6.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.26, allocations: 1.219 kB / 401 MB, free: 6.004 MB / 318.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.001331/0.2613, allocations: 0.5696 MB / 401.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.2613, allocations: 14.3 kB / 401.6 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.91e-05/0.2614, allocations: 57.34 kB / 401.7 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.476e-05/0.2615, allocations: 35.3 kB / 401.7 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.2618, allocations: 202.1 kB / 401.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.2618, allocations: 12.44 kB / 401.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.642e-05/0.2618, allocations: 21.88 kB / 401.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005912/0.2624, allocations: 354.5 kB / 402.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.2624, allocations: 0 / 402.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.2624, allocations: 14.53 kB / 402.3 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.2625, allocations: 5 kB / 402.3 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007346/0.2632, allocations: 269.1 kB / 402.6 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.2647, allocations: 0.9613 MB / 403.5 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00187/0.2666, allocations: 427.4 kB / 403.9 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/0.267, allocations: 136 kB / 404.1 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.267, allocations: 2.875 kB / 404.1 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.267, allocations: 36.36 kB / 404.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.267, allocations: 1.469 kB / 404.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004659/0.2717, allocations: 0.9434 MB / 405.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.2717, allocations: 58.19 kB / 405.1 MB, free: 3.918 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.2719, allocations: 221.1 kB / 405.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.272, allocations: 27.52 kB / 405.4 MB, free: 3.742 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.051e-05/0.272, allocations: 162.9 kB / 405.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.81e-05/0.2721, allocations: 46 kB / 405.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.558e-05/0.2721, allocations: 38.95 kB / 405.6 MB, free: 3.535 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.318e-05/0.2722, allocations: 329 kB / 405.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003289/0.2725, allocations: 106.6 kB / 406 MB, free: 3.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003333/0.2729, allocations: 122.3 kB / 406.2 MB, free: 3.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006096/0.2735, allocations: 237.2 kB / 406.4 MB, free: 3.055 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2735, allocations: 7.875 kB / 406.4 MB, free: 3.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002615/0.2761, allocations: 0.6314 MB / 407 MB, free: 2.906 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2761, allocations: 5.938 kB / 407 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2761, allocations: 0 / 407 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007105/0.2768, allocations: 224.2 kB / 407.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.277, allocations: 32.44 kB / 407.3 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005973/0.283, allocations: 2.622 MB / 409.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.2833, allocations: 39.86 kB / 409.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.2833, allocations: 11.34 kB / 410 MB, free: 1.109 MB / 318.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.0001168/0.2834, allocations: 132.3 kB / 410.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.2834, allocations: 17.94 kB / 410.1 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.302e-05/0.2835, allocations: 26.7 kB / 410.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2835, allocations: 1.344 kB / 410.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.2835, allocations: 0 / 410.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.155e-06/0.2835, allocations: 0 / 410.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/0.2838, allocations: 263.8 kB / 410.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.2838, allocations: 1.062 kB / 410.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.2839, allocations: 39.09 kB / 410.4 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005878/0.2845, allocations: 218.2 kB / 410.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.2845, allocations: 1.062 kB / 410.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006155/0.2907, allocations: 2.612 MB / 413.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2907, allocations: 1.031 kB / 413.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003181/0.2938, allocations: 0.8473 MB / 414.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.411e-05/0.2939, allocations: 16.78 kB / 414.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.2939, allocations: 9.281 kB / 414.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.2942, allocations: 31.06 kB / 414.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.286e-05/0.2942, allocations: 15.2 kB / 414.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.051e-05/0.2943, allocations: 7.453 kB / 414.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001818/0.2944, allocations: 163.5 kB / 414.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2944, allocations: 0 / 414.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004396/0.2949, allocations: 86.38 kB / 414.4 MB, free: 14.01 MB / 334.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.003463/0.2984, allocations: 1.375 MB / 415.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.2999, allocations: 445 kB / 416.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.2999, allocations: 0 / 416.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.3009, allocations: 315.6 kB / 416.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.3012, allocations: 47.67 kB / 416.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00849/0.3097, allocations: 3.344 MB / 419.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.3099, allocations: 127.8 kB / 420 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.925e-05/0.31, allocations: 17.3 kB / 420.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.3101, allocations: 71.31 kB / 420.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3101, allocations: 0 / 420.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03939/0.3495, allocations: 7.911 MB / 428 MB, free: 2.617 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.5, allocations: 8.188 kB / 428.1 MB, free: 2.609 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.855350764933974]