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.005826/0.005826, allocations: 100.3 kB / 21.96 MB, free: 5.199 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.001722/0.001722, allocations: 218 kB / 25.26 MB, free: 3.137 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.36/1.36, allocations: 207.7 MB / 236.1 MB, free: 9.805 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",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.001708/0.001708, allocations: 51.92 kB / 348 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.229, allocations: 49.15 MB / 397.1 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003034/0.232, allocations: 2.484 MB / 399.6 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009821/0.233, allocations: 0.6874 MB / 400.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.2331, allocations: 4.125 kB / 400.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.2332, allocations: 40.69 kB / 400.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.2334, allocations: 79.97 kB / 400.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003007/0.2337, allocations: 100.5 kB / 400.5 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003169/0.234, allocations: 360.5 kB / 400.9 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.2341, allocations: 71.83 kB / 400.9 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002174/0.2344, allocations: 143.2 kB / 401.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.2346, allocations: 164.3 kB / 401.2 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.2346, allocations: 30.44 kB / 401.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.285e-05/0.2347, allocations: 30.84 kB / 401.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.86e-05/0.2347, allocations: 70.83 kB / 401.4 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.2348, allocations: 126 kB / 401.5 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000345/0.2352, allocations: 340.3 kB / 401.8 MB, free: 6.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2352, allocations: 1.125 kB / 401.8 MB, free: 6.008 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2352, allocations: 0 / 401.8 MB, free: 6.008 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.2352, allocations: 0 / 401.8 MB, free: 6.008 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.001347/0.2365, allocations: 0.578 MB / 402.4 MB, free: 5.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.2366, allocations: 13.91 kB / 402.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.666e-05/0.2366, allocations: 5.656 kB / 402.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.582e-05/0.2366, allocations: 54.89 kB / 402.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.253e-05/0.2367, allocations: 30.56 kB / 402.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/0.237, allocations: 197.3 kB / 402.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.237, allocations: 28.78 kB / 402.7 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.2371, allocations: 21.78 kB / 402.8 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006639/0.2377, allocations: 355.6 kB / 403.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.2377, allocations: 3.938 kB / 403.1 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.2378, allocations: 6.406 kB / 403.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.2378, allocations: 5.594 kB / 403.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007426/0.2385, allocations: 272.3 kB / 403.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.2401, allocations: 0.967 MB / 404.3 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/0.2421, allocations: 428.7 kB / 404.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003913/0.2425, allocations: 136.7 kB / 404.9 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.2425, allocations: 2.734 kB / 404.9 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.2425, allocations: 41.3 kB / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.833e-06/0.2425, allocations: 0 / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.005109/0.2476, allocations: 0.9366 MB / 405.9 MB, free: 3.973 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.321e-05/0.2476, allocations: 53.59 kB / 405.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/0.2479, allocations: 217.1 kB / 406.1 MB, free: 3.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.2479, allocations: 30.98 kB / 406.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.926e-05/0.248, allocations: 159.1 kB / 406.3 MB, free: 3.594 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.372e-05/0.248, allocations: 58.14 kB / 406.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-05/0.2481, allocations: 34.81 kB / 406.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.32e-05/0.2481, allocations: 329.5 kB / 406.7 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.2485, allocations: 106.6 kB / 406.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.2488, allocations: 122.3 kB / 407 MB, free: 3.133 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006741/0.2495, allocations: 245.7 kB / 407.2 MB, free: 3.035 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.2495, allocations: 0 / 407.2 MB, free: 3.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002962/0.2525, allocations: 0.6307 MB / 407.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.2525, allocations: 5.344 kB / 407.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.2525, allocations: 2.672 kB / 407.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007424/0.2532, allocations: 214.3 kB / 408.1 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.2534, allocations: 36.75 kB / 408.1 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006534/0.2599, allocations: 2.621 MB / 410.7 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003212/0.2603, allocations: 39.3 kB / 410.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.2603, allocations: 8.219 kB / 410.8 MB, free: 1.102 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.0001318/0.2604, allocations: 135.7 kB / 410.9 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.474e-05/0.2605, allocations: 21.86 kB / 410.9 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.724e-05/0.2605, allocations: 26.11 kB / 410.9 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2605, allocations: 2.312 kB / 410.9 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2605, allocations: 4 kB / 410.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.2605, allocations: 1 kB / 410.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/0.2608, allocations: 267.2 kB / 411.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2608, allocations: 0 / 411.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001728/0.261, allocations: 35.19 kB / 411.2 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006289/0.2616, allocations: 218.7 kB / 411.5 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.2617, allocations: 9.266 kB / 411.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00658/0.2682, allocations: 2.6 MB / 414.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2682, allocations: 1.438 kB / 414.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003324/0.2716, allocations: 0.8469 MB / 414.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.755e-05/0.2716, allocations: 25.61 kB / 414.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.2717, allocations: 5.156 kB / 414.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/0.272, allocations: 31 kB / 415 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.138e-05/0.272, allocations: 14.62 kB / 415 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.851e-05/0.272, allocations: 3.281 kB / 415 MB, free: 14.13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001587/0.2722, allocations: 159.6 kB / 415.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2722, allocations: 5.031 kB / 415.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004768/0.2727, allocations: 89.38 kB / 415.2 MB, free: 13.99 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.003639/0.2763, allocations: 1.371 MB / 416.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.278, allocations: 445.2 kB / 417 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.278, allocations: 0 / 417 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.2791, allocations: 316.1 kB / 417.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.2795, allocations: 38.34 kB / 417.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008923/0.2884, allocations: 3.337 MB / 420.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001344/0.2885, allocations: 132.4 kB / 420.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.349e-05/0.2886, allocations: 20.61 kB / 420.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.2887, allocations: 71.78 kB / 420.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2887, allocations: 0 / 420.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03268/0.3214, allocations: 7.457 MB / 428.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.85, allocations: 3.938 kB / 428.4 MB, free: 3.086 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: 15.32618245203048]