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.001376/0.001376, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001564/0.001564, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.762/1.762, allocations: 207.6 MB / 235.3 MB, free: 10.02 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.002524/0.002524, allocations: 55.92 kB / 347.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.342, allocations: 49.15 MB / 396.3 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004591/0.3466, allocations: 2.686 MB / 399 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.3479, allocations: 0.7287 MB / 399.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.3481, allocations: 3.094 kB / 399.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.3482, allocations: 41.72 kB / 399.8 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.3484, allocations: 77.52 kB / 399.9 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.3487, allocations: 101.8 kB / 400 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005575/0.3493, allocations: 364.3 kB / 400.3 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002501/0.3495, allocations: 68 kB / 400.4 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003071/0.3498, allocations: 149.5 kB / 400.6 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.3502, allocations: 161.9 kB / 400.7 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.008e-05/0.3503, allocations: 30.84 kB / 400.7 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.934e-05/0.3503, allocations: 30.31 kB / 400.8 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.583e-05/0.3504, allocations: 65.61 kB / 400.8 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.3506, allocations: 145.9 kB / 401 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000632/0.3513, allocations: 345.4 kB / 401.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.3513, allocations: 4.703 kB / 401.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3513, allocations: 0 / 401.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.3513, allocations: 1.281 kB / 401.3 MB, free: 5.816 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.001585/0.3529, allocations: 0.5733 MB / 401.9 MB, free: 5.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3529, allocations: 13.7 kB / 401.9 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.655e-05/0.353, allocations: 57.52 kB / 402 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.635e-05/0.353, allocations: 31.61 kB / 402 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.3533, allocations: 209.1 kB / 402.2 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.3533, allocations: 12.09 kB / 402.2 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.973e-05/0.3534, allocations: 26.05 kB / 402.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006734/0.3541, allocations: 303.1 kB / 402.5 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.3541, allocations: 0 / 402.5 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.3541, allocations: 5.938 kB / 402.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.3541, allocations: 5.812 kB / 402.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007918/0.3549, allocations: 269.9 kB / 402.8 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.3565, allocations: 1.026 MB / 403.8 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001988/0.3585, allocations: 427.6 kB / 404.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003963/0.3589, allocations: 136.1 kB / 404.4 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.359, allocations: 7.172 kB / 404.4 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.684e-05/0.359, allocations: 35.56 kB / 404.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.359, allocations: 0 / 404.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004984/0.364, allocations: 0.9454 MB / 405.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.364, allocations: 57.84 kB / 405.4 MB, free: 3.762 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.3643, allocations: 212.7 kB / 405.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.3643, allocations: 25.7 kB / 405.7 MB, free: 3.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.761e-05/0.3644, allocations: 160 kB / 405.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.419e-05/0.3645, allocations: 56.69 kB / 405.9 MB, free: 3.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.129e-05/0.3646, allocations: 36.02 kB / 405.9 MB, free: 3.383 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.384e-05/0.3646, allocations: 333.7 kB / 406.2 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003443/0.365, allocations: 105.3 kB / 406.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003402/0.3653, allocations: 127.4 kB / 406.5 MB, free: 2.984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006267/0.3659, allocations: 233 kB / 406.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.3659, allocations: 3.938 kB / 406.7 MB, free: 2.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002874/0.3688, allocations: 0.6307 MB / 407.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.3688, allocations: 5.234 kB / 407.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3688, allocations: 0 / 407.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007245/0.3696, allocations: 216.2 kB / 407.5 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.3697, allocations: 33.7 kB / 407.6 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006692/0.3764, allocations: 2.643 MB / 410.2 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.3768, allocations: 39.31 kB / 410.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.3768, allocations: 12.05 kB / 410.3 MB, free: 0.9219 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.0001633/0.377, allocations: 135.1 kB / 410.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.826e-05/0.377, allocations: 22.11 kB / 410.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.097e-05/0.3771, allocations: 30.05 kB / 410.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3771, allocations: 2.188 kB / 410.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3771, allocations: 0 / 410.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3771, allocations: 0.9375 kB / 410.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003493/0.3774, allocations: 307.7 kB / 410.7 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3774, allocations: 0 / 410.7 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.3776, allocations: 26.52 kB / 410.8 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006252/0.3782, allocations: 218.8 kB / 411 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.3782, allocations: 9.391 kB / 411 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007049/0.3853, allocations: 2.629 MB / 413.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3853, allocations: 0 / 413.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003428/0.3887, allocations: 0.8464 MB / 414.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.579e-05/0.3888, allocations: 21.41 kB / 414.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.78e-05/0.3888, allocations: 5.203 kB / 414.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.3891, allocations: 37.62 kB / 414.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/0.3892, allocations: 7.547 kB / 414.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.3892, allocations: 4.188 kB / 414.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001777/0.3894, allocations: 158.6 kB / 414.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3894, allocations: 5.344 kB / 414.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005233/0.3899, allocations: 80.94 kB / 414.8 MB, free: 13.76 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.003736/0.3936, allocations: 1.382 MB / 416.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.3953, allocations: 444.4 kB / 416.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3953, allocations: 1.312 kB / 416.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.3964, allocations: 323.7 kB / 416.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.3969, allocations: 39.03 kB / 417 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009153/0.406, allocations: 3.334 MB / 420.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/0.4064, allocations: 0.7533 MB / 421 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.4065, allocations: 12.45 kB / 421.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.4067, allocations: 63.3 kB / 421.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4067, allocations: 4 kB / 421.1 MB, free: 9.336 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04673/0.4534, allocations: 7.495 MB / 428.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.06, allocations: 3.859 kB / 428.6 MB, free: 2.312 MB / 334.1 MB " [Timeout remaining time 646] (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: 17.005142231006175]