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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 113.4 kB / 17.73 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 184.1 kB / 18.66 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09311/0.09481, allocations: 46.61 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004155/0.09901, allocations: 2.672 MB / 377.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1003, allocations: 0.7057 MB / 378 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.1005, allocations: 4 kB / 378 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.1007, allocations: 47.52 kB / 378.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.1009, allocations: 75.31 kB / 378.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.1012, allocations: 99.81 kB / 378.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004243/0.1016, allocations: 362.4 kB / 378.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.1019, allocations: 100.6 kB / 378.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002378/0.1021, allocations: 143.5 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002281/0.1023, allocations: 163.4 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.623e-05/0.1024, allocations: 32 kB / 379 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.608e-05/0.1025, allocations: 28 kB / 379.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.919e-05/0.1025, allocations: 67.75 kB / 379.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.1027, allocations: 143.4 kB / 379.3 MB, free: 448 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003906/0.1031, allocations: 346.6 kB / 379.6 MB, free: 100 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1032, allocations: 0 / 379.6 MB, free: 100 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1032, allocations: 4 kB / 379.6 MB, free: 96 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.1032, allocations: 3.938 kB / 379.6 MB, free: 92 kB / 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.1951/0.2983, allocations: 0.6442 MB / 380.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.2984, allocations: 10.22 kB / 380.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.472e-05/0.2985, allocations: 53.34 kB / 380.3 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.465e-05/0.2985, allocations: 34.19 kB / 380.3 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004319/0.299, allocations: 259.8 kB / 380.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.299, allocations: 13.12 kB / 380.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.038e-05/0.2991, allocations: 18.38 kB / 380.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006991/0.2998, allocations: 301.8 kB / 380.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.2998, allocations: 3.938 kB / 380.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.2998, allocations: 8.938 kB / 380.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.2999, allocations: 5.438 kB / 380.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008039/0.3007, allocations: 271.5 kB / 381.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.3022, allocations: 1.052 MB / 382.3 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/0.3044, allocations: 442.7 kB / 382.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004315/0.3048, allocations: 144.6 kB / 382.8 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.579e-05/0.3049, allocations: 4.812 kB / 382.8 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.3049, allocations: 35.88 kB / 382.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.3049, allocations: 1.297 kB / 382.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004991/0.3099, allocations: 1.023 MB / 383.9 MB, free: 11.67 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.31, allocations: 56.31 kB / 384 MB, free: 11.61 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002537/0.3102, allocations: 217.1 kB / 384.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.3103, allocations: 31.05 kB / 384.2 MB, free: 11.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.3104, allocations: 163.2 kB / 384.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.823e-05/0.3104, allocations: 51.86 kB / 384.4 MB, free: 11.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.458e-05/0.3105, allocations: 38.12 kB / 384.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.116e-05/0.3106, allocations: 333.9 kB / 384.8 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.311, allocations: 103.2 kB / 384.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003586/0.3114, allocations: 128.4 kB / 385 MB, free: 10.83 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006734/0.312, allocations: 226.4 kB / 385.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.312, allocations: 1.75 kB / 385.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002861/0.3149, allocations: 0.6378 MB / 385.9 MB, free: 10.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3149, allocations: 5.688 kB / 385.9 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.315, allocations: 0 / 385.9 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008368/0.3158, allocations: 216.4 kB / 386.1 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.316, allocations: 36.98 kB / 386.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006432/0.3224, allocations: 2.752 MB / 388.9 MB, free: 8.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003145/0.3228, allocations: 38.14 kB / 388.9 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.3228, allocations: 5.844 kB / 388.9 MB, free: 8.727 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.0001434/0.323, allocations: 139.2 kB / 389 MB, free: 8.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.314e-05/0.323, allocations: 26.47 kB / 389.1 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.759e-05/0.3231, allocations: 25.39 kB / 389.1 MB, free: 8.555 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.3231, allocations: 5.594 kB / 389.1 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3231, allocations: 2.062 kB / 389.1 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.3231, allocations: 0.6562 kB / 389.1 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003905/0.3235, allocations: 329.7 kB / 389.4 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3235, allocations: 1.281 kB / 389.4 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.3237, allocations: 28.25 kB / 389.5 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006869/0.3244, allocations: 219.8 kB / 389.7 MB, free: 8.246 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.344e-05/0.3244, allocations: 6.922 kB / 389.7 MB, free: 8.242 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006189/0.3306, allocations: 2.736 MB / 392.4 MB, free: 6.441 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3306, allocations: 6.172 kB / 392.4 MB, free: 6.441 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003312/0.3339, allocations: 0.8444 MB / 393.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.818e-05/0.334, allocations: 94.72 kB / 393.4 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.334, allocations: 10.5 kB / 393.4 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.3343, allocations: 29.81 kB / 393.4 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.529e-05/0.3344, allocations: 11.58 kB / 393.4 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.3344, allocations: 5.844 kB / 393.4 MB, free: 6.039 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.3346, allocations: 161.2 kB / 393.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3346, allocations: 0 / 393.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004886/0.3351, allocations: 82.83 kB / 393.6 MB, free: 5.922 MB / 318.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.003644/0.3387, allocations: 1.387 MB / 395 MB, free: 5.105 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.3404, allocations: 456.2 kB / 395.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3404, allocations: 0 / 395.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.3415, allocations: 332 kB / 395.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.3419, allocations: 32.53 kB / 395.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008383/0.3503, allocations: 3.345 MB / 399.2 MB, free: 2.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.3505, allocations: 0.7433 MB / 399.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.3507, allocations: 16.97 kB / 399.9 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.3508, allocations: 67.31 kB / 400 MB, free: 2.219 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3508, allocations: 0.625 kB / 400 MB, free: 2.219 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03765/0.3885, allocations: 7.316 MB / 407.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.66, allocations: 17.91 kB / 407.3 MB, free: 14.56 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv --start-time 0 --stop-time 0.4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00016 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv","/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) Reference file matches