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.001222/0.001222, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001297/0.001297, allocations: 187.5 kB / 24.51 MB, free: 4.086 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.345/1.345, allocations: 225.6 MB / 253.3 MB, free: 13.03 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 47.92 kB / 371.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2246, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003878/0.2285, allocations: 2.725 MB / 426.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.2296, allocations: 0.674 MB / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.2297, allocations: 7.938 kB / 426.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.2298, allocations: 39.58 kB / 426.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.23, allocations: 83.27 kB / 427 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002674/0.2302, allocations: 91.8 kB / 427 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003774/0.2306, allocations: 370.5 kB / 427.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.2308, allocations: 64.56 kB / 427.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.231, allocations: 147.5 kB / 427.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.2312, allocations: 159.4 kB / 427.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.989e-05/0.2312, allocations: 31.98 kB / 427.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.842e-05/0.2313, allocations: 32 kB / 427.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.509e-05/0.2314, allocations: 75.75 kB / 427.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001466/0.2315, allocations: 147.3 kB / 428 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003576/0.2319, allocations: 335.8 kB / 428.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2319, allocations: 4 kB / 428.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2319, allocations: 0 / 428.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.2319, allocations: 0 / 428.4 MB, free: 9.641 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.001388/0.2333, allocations: 0.5715 MB / 428.9 MB, free: 9.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2333, allocations: 12.03 kB / 429 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.586e-05/0.2333, allocations: 8.625 kB / 429 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.77e-05/0.2334, allocations: 54.67 kB / 429 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.08e-05/0.2334, allocations: 32.75 kB / 429.1 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/0.2338, allocations: 203 kB / 429.3 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.2338, allocations: 16.81 kB / 429.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.445e-05/0.2338, allocations: 16.38 kB / 429.3 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006485/0.2345, allocations: 310.4 kB / 429.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2345, allocations: 0 / 429.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.75e-05/0.2345, allocations: 8 kB / 429.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.2345, allocations: 4 kB / 429.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007722/0.2353, allocations: 273.5 kB / 429.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.2369, allocations: 1.019 MB / 430.9 MB, free: 6.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001855/0.2388, allocations: 430.3 kB / 431.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/0.2392, allocations: 136.8 kB / 431.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.2392, allocations: 3.984 kB / 431.4 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.2392, allocations: 42.5 kB / 431.5 MB, free: 6.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.2392, allocations: 0 / 431.5 MB, free: 6.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.004711/0.2439, allocations: 0.947 MB / 432.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.244, allocations: 55.41 kB / 432.5 MB, free: 5.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.2442, allocations: 216.1 kB / 432.7 MB, free: 5.109 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.2442, allocations: 29.7 kB / 432.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.2444, allocations: 160.2 kB / 432.9 MB, free: 4.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/0.2444, allocations: 51.53 kB / 432.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.603e-05/0.2445, allocations: 41.69 kB / 433 MB, free: 4.812 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.2447, allocations: 330.8 kB / 433.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003368/0.245, allocations: 103.9 kB / 433.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003432/0.2453, allocations: 125.6 kB / 433.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006524/0.246, allocations: 236.5 kB / 433.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.246, allocations: 0 / 433.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002801/0.2488, allocations: 0.6346 MB / 434.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.2488, allocations: 4 kB / 434.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2488, allocations: 0 / 434.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007118/0.2495, allocations: 220.7 kB / 434.6 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.2497, allocations: 35.98 kB / 434.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006825/0.2565, allocations: 2.632 MB / 437.3 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.2568, allocations: 35.89 kB / 437.3 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.2568, allocations: 11.98 kB / 437.3 MB, free: 328 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.000162/0.257, allocations: 141.8 kB / 437.5 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.056e-05/0.257, allocations: 15.91 kB / 437.5 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.437e-05/0.2571, allocations: 17.47 kB / 437.5 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2571, allocations: 7.984 kB / 437.5 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.2571, allocations: 0 / 437.5 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2571, allocations: 0 / 437.5 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004079/0.2575, allocations: 304.4 kB / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2575, allocations: 0 / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.2576, allocations: 35.98 kB / 437.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006584/0.2583, allocations: 220.7 kB / 438 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.2583, allocations: 3.984 kB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006607/0.2649, allocations: 2.633 MB / 440.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2649, allocations: 4 kB / 440.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003255/0.2682, allocations: 0.8473 MB / 441.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.2682, allocations: 23.83 kB / 441.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.281e-05/0.2683, allocations: 0 / 441.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.2685, allocations: 31.97 kB / 441.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.2686, allocations: 7.984 kB / 441.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.2686, allocations: 11.98 kB / 441.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001581/0.2688, allocations: 165.7 kB / 441.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2688, allocations: 7.875 kB / 441.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000444/0.2692, allocations: 79.83 kB / 441.9 MB, free: 11.59 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.003565/0.2728, allocations: 1.376 MB / 443.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.2743, allocations: 442.5 kB / 443.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.2743, allocations: 0 / 443.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.2753, allocations: 326.5 kB / 444 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.2757, allocations: 36.59 kB / 444 MB, free: 9.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008401/0.2841, allocations: 3.351 MB / 447.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.2845, allocations: 0.7398 MB / 448.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.96e-05/0.2845, allocations: 17.48 kB / 448.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.2846, allocations: 67.41 kB / 448.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2846, allocations: 0 / 448.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.3178, allocations: 7.512 MB / 455.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.5, allocations: 6.297 kB / 455.7 MB, free: 13.75 MB / 366.1 MB " [Timeout remaining time 647] (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.983382484992035]