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.001747/0.001747, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.001927/0.001927, allocations: 187.5 kB / 23.71 MB, free: 4.434 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.34/1.34, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.001511/0.001511, allocations: 39.94 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2347, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003865/0.2385, allocations: 2.535 MB / 425.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.2396, allocations: 0.6367 MB / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.2397, allocations: 4 kB / 425.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.2398, allocations: 43.56 kB / 425.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.24, allocations: 75.28 kB / 425.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002871/0.2403, allocations: 99.8 kB / 426 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.2406, allocations: 370.5 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.2408, allocations: 60.89 kB / 426.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.241, allocations: 135.5 kB / 426.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.2412, allocations: 143.4 kB / 426.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.608e-05/0.2413, allocations: 32 kB / 426.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.821e-05/0.2413, allocations: 32 kB / 426.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.452e-05/0.2414, allocations: 67.69 kB / 426.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.2415, allocations: 127.5 kB / 426.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.2419, allocations: 350.6 kB / 427.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.2419, allocations: 0 / 427.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2419, allocations: 0 / 427.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.2419, allocations: 0 / 427.3 MB, free: 9.711 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.001327/0.2432, allocations: 0.5715 MB / 427.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.2433, allocations: 12.03 kB / 427.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.755e-05/0.2433, allocations: 50.73 kB / 427.9 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.43e-05/0.2434, allocations: 40.69 kB / 427.9 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003336/0.2437, allocations: 199 kB / 428.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.2437, allocations: 16.81 kB / 428.1 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.667e-05/0.2438, allocations: 20.38 kB / 428.2 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006719/0.2445, allocations: 354.1 kB / 428.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.2445, allocations: 8 kB / 428.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/0.2445, allocations: 8 kB / 428.5 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.2445, allocations: 4 kB / 428.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007689/0.2453, allocations: 269.5 kB / 428.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.2469, allocations: 0.9571 MB / 429.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.2487, allocations: 438.2 kB / 430.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/0.2491, allocations: 136.7 kB / 430.3 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.2491, allocations: 3.984 kB / 430.3 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.2492, allocations: 34.56 kB / 430.3 MB, free: 6.434 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.2492, allocations: 0 / 430.3 MB, free: 6.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.004513/0.2537, allocations: 0.949 MB / 431.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.2537, allocations: 55.41 kB / 431.3 MB, free: 5.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002164/0.2539, allocations: 216.1 kB / 431.6 MB, free: 5.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.2539, allocations: 29.7 kB / 431.6 MB, free: 5.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.2541, allocations: 160.2 kB / 431.7 MB, free: 4.988 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.814e-05/0.2541, allocations: 51.58 kB / 431.8 MB, free: 4.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.936e-05/0.2542, allocations: 41.69 kB / 431.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.2543, allocations: 330.8 kB / 432.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003345/0.2547, allocations: 107.9 kB / 432.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/0.255, allocations: 123.8 kB / 432.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006577/0.2557, allocations: 232.7 kB / 432.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.2557, allocations: 7.938 kB / 432.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002672/0.2583, allocations: 0.6307 MB / 433.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.2584, allocations: 8 kB / 433.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.2584, allocations: 0 / 433.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007056/0.2591, allocations: 220.7 kB / 433.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.2592, allocations: 31.98 kB / 433.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006545/0.2658, allocations: 2.608 MB / 436.1 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002659/0.266, allocations: 35.94 kB / 436.1 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.2661, allocations: 15.92 kB / 436.2 MB, free: 432 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.0001593/0.2662, allocations: 133.8 kB / 436.3 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.93e-05/0.2663, allocations: 19.86 kB / 436.3 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.068e-05/0.2663, allocations: 29.45 kB / 436.3 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.2663, allocations: 0 / 436.3 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.2663, allocations: 0 / 436.3 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.2663, allocations: 4.078 kB / 436.3 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003601/0.2667, allocations: 268.7 kB / 436.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2667, allocations: 0 / 436.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.2669, allocations: 27.98 kB / 436.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000631/0.2675, allocations: 224.6 kB / 436.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.2675, allocations: 4 kB / 436.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006354/0.2739, allocations: 2.617 MB / 439.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2739, allocations: 0 / 439.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003042/0.2769, allocations: 0.8357 MB / 440.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.392e-05/0.2769, allocations: 27.81 kB / 440.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.946e-05/0.277, allocations: 0 / 440.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002708/0.2772, allocations: 35.97 kB / 440.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.768e-05/0.2773, allocations: 11.92 kB / 440.4 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.2773, allocations: 12.05 kB / 440.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001485/0.2775, allocations: 157.6 kB / 440.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2775, allocations: 0 / 440.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004213/0.2779, allocations: 79.89 kB / 440.6 MB, free: 11.76 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.00338/0.2813, allocations: 1.384 MB / 442 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.2827, allocations: 446.4 kB / 442.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2827, allocations: 0 / 442.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.2837, allocations: 318.6 kB / 442.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.284, allocations: 36.59 kB / 442.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008166/0.2922, allocations: 3.344 MB / 446.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001353/0.2923, allocations: 137.8 kB / 446.3 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.922e-05/0.2924, allocations: 17.47 kB / 446.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.2925, allocations: 67.34 kB / 446.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2925, allocations: 4 kB / 446.4 MB, free: 5.871 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03893/0.3315, allocations: 7.878 MB / 454.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.2, allocations: 9.703 kB / 454.2 MB, free: 14.13 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.534834038000554]