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.001233/0.001233, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.00138/0.00138, allocations: 210.7 kB / 24.53 MB, free: 4.07 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.443/1.443, allocations: 230.5 MB / 258.2 MB, free: 8.008 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 55.91 kB / 378.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3224, allocations: 53.4 MB / 432 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004382/0.3268, allocations: 2.754 MB / 434.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.3282, allocations: 0.7205 MB / 435.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.3284, allocations: 12 kB / 435.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001701/0.3285, allocations: 47.5 kB / 435.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000157/0.3287, allocations: 83.27 kB / 435.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.3291, allocations: 107.8 kB / 435.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004241/0.3295, allocations: 358.6 kB / 436 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.3297, allocations: 68.55 kB / 436.1 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000318/0.33, allocations: 151.5 kB / 436.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.3302, allocations: 159.4 kB / 436.4 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.703e-05/0.3303, allocations: 32 kB / 436.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.074e-05/0.3304, allocations: 32 kB / 436.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.495e-05/0.3305, allocations: 71.8 kB / 436.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.3306, allocations: 151.2 kB / 436.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004711/0.3311, allocations: 347.8 kB / 437 MB, free: 1.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3311, allocations: 0 / 437 MB, free: 1.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3311, allocations: 0 / 437 MB, free: 1.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.3311, allocations: 0 / 437 MB, free: 1.586 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.001526/0.3326, allocations: 0.5754 MB / 437.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3327, allocations: 8.031 kB / 437.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.907e-05/0.3327, allocations: 4.625 kB / 437.6 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.705e-05/0.3328, allocations: 62.72 kB / 437.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001815/0.333, allocations: 40.73 kB / 437.7 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.3334, allocations: 211 kB / 437.9 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.3334, allocations: 12.81 kB / 437.9 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.426e-05/0.3334, allocations: 20.38 kB / 438 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006834/0.3341, allocations: 306.5 kB / 438.3 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3341, allocations: 0 / 438.3 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.3342, allocations: 4 kB / 438.3 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.3342, allocations: 8 kB / 438.3 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007891/0.335, allocations: 265.5 kB / 438.5 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.3368, allocations: 1.035 MB / 439.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001953/0.3387, allocations: 433.8 kB / 440 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004087/0.3391, allocations: 132.8 kB / 440.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.3392, allocations: 11.98 kB / 440.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.3392, allocations: 34.5 kB / 440.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.243e-06/0.3392, allocations: 0 / 440.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.005043/0.3442, allocations: 0.9431 MB / 441.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.3443, allocations: 59.41 kB / 441.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/0.3445, allocations: 220.9 kB / 441.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.36e-05/0.3446, allocations: 29.7 kB / 441.4 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.3447, allocations: 160.2 kB / 441.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.561e-05/0.3448, allocations: 51.61 kB / 441.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.3449, allocations: 37.66 kB / 441.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.345, allocations: 334.8 kB / 442 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003581/0.3454, allocations: 103.9 kB / 442.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003625/0.3458, allocations: 131.9 kB / 442.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006856/0.3464, allocations: 225.5 kB / 442.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3464, allocations: 0 / 442.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00291/0.3494, allocations: 0.6293 MB / 443.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3494, allocations: 4 kB / 443.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3494, allocations: 4 kB / 443.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007674/0.3502, allocations: 224.6 kB / 443.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.3503, allocations: 35.97 kB / 443.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007158/0.3575, allocations: 2.65 MB / 446 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003261/0.3578, allocations: 39.97 kB / 446 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.3578, allocations: 7.984 kB / 446 MB, free: 8.238 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.0002101/0.358, allocations: 137.7 kB / 446.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-05/0.3581, allocations: 15.91 kB / 446.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.634e-05/0.3582, allocations: 25.77 kB / 446.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3582, allocations: 4 kB / 446.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3582, allocations: 4 kB / 446.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3582, allocations: 0 / 446.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005065/0.3587, allocations: 300.4 kB / 446.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.3587, allocations: 0 / 446.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.3589, allocations: 27.98 kB / 446.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007067/0.3596, allocations: 212.7 kB / 446.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/0.3596, allocations: 19.92 kB / 446.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006974/0.3666, allocations: 2.639 MB / 449.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3666, allocations: 0 / 449.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003337/0.3699, allocations: 0.8395 MB / 450.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.054e-05/0.37, allocations: 15.86 kB / 450.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.363e-05/0.37, allocations: 11.98 kB / 450.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003018/0.3703, allocations: 35.98 kB / 450.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.492e-05/0.3704, allocations: 19.91 kB / 450.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.3704, allocations: 4 kB / 450.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001695/0.3706, allocations: 160.5 kB / 450.5 MB, free: 3.594 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3706, allocations: 0 / 450.5 MB, free: 3.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004795/0.371, allocations: 83.83 kB / 450.5 MB, free: 3.512 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.003628/0.3747, allocations: 1.384 MB / 451.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.3763, allocations: 434.4 kB / 452.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3763, allocations: 3.938 kB / 452.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.3774, allocations: 326.6 kB / 452.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.3778, allocations: 39.34 kB / 452.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009138/0.387, allocations: 3.356 MB / 456.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004251/0.3874, allocations: 0.7476 MB / 456.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.3875, allocations: 9.484 kB / 456.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3876, allocations: 67.41 kB / 456.9 MB, free: 13 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3876, allocations: 0 / 456.9 MB, free: 13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03602/0.4236, allocations: 7.543 MB / 464.4 MB, free: 5.598 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.02, allocations: 8.438 kB / 464.4 MB, free: 5.594 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.719310769985896]