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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001206, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00151/0.00151, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.38 kB / 307 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08978/0.09104, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003937/0.09501, allocations: 2.726 MB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.09634, allocations: 0.7129 MB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002245/0.09659, allocations: 7.938 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.09679, allocations: 43.58 kB / 361.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.09702, allocations: 83.27 kB / 361.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.09738, allocations: 107.8 kB / 361.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003962/0.09779, allocations: 354.6 kB / 361.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.09798, allocations: 92.69 kB / 361.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002828/0.09827, allocations: 151.5 kB / 361.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002092/0.0985, allocations: 155.4 kB / 362 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.728e-05/0.09856, allocations: 28 kB / 362 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.739e-05/0.09866, allocations: 39.98 kB / 362.1 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.751e-05/0.09873, allocations: 67.69 kB / 362.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.09887, allocations: 143.4 kB / 362.3 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003487/0.09923, allocations: 347.1 kB / 362.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.09924, allocations: 4 kB / 362.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09925, allocations: 0 / 362.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.09927, allocations: 3.938 kB / 362.6 MB, free: 8.953 MB / 302.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.001511/0.1008, allocations: 0.6586 MB / 363.3 MB, free: 8.246 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.1008, allocations: 8.031 kB / 363.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.489e-05/0.1009, allocations: 54.73 kB / 363.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.1011, allocations: 36.64 kB / 363.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003017/0.1014, allocations: 264.6 kB / 363.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.1015, allocations: 12.81 kB / 363.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.1015, allocations: 20.38 kB / 363.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006629/0.1022, allocations: 310.7 kB / 364 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.1022, allocations: 0 / 364 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/0.1022, allocations: 8 kB / 364 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1022, allocations: 4 kB / 364 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008087/0.1031, allocations: 273.5 kB / 364.2 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.1047, allocations: 1.062 MB / 365.3 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001991/0.1067, allocations: 438.3 kB / 365.7 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004089/0.1072, allocations: 148.8 kB / 365.9 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.1072, allocations: 3.984 kB / 365.9 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.1072, allocations: 34.56 kB / 365.9 MB, free: 5.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.1072, allocations: 0 / 365.9 MB, free: 5.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.00513/0.1124, allocations: 1.025 MB / 366.9 MB, free: 4.387 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.1124, allocations: 55.41 kB / 367 MB, free: 4.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.1127, allocations: 225 kB / 367.2 MB, free: 4.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.1127, allocations: 25.7 kB / 367.2 MB, free: 4.055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1128, allocations: 164.1 kB / 367.4 MB, free: 3.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.664e-05/0.1129, allocations: 43.36 kB / 367.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-05/0.113, allocations: 33.7 kB / 367.5 MB, free: 3.809 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1131, allocations: 330.8 kB / 367.8 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/0.1134, allocations: 103.9 kB / 367.9 MB, free: 3.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003556/0.1138, allocations: 128.5 kB / 368 MB, free: 3.246 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006777/0.1145, allocations: 237.5 kB / 368.3 MB, free: 3.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.289e-06/0.1145, allocations: 3.938 kB / 368.3 MB, free: 3.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00297/0.1175, allocations: 0.6293 MB / 368.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1175, allocations: 4 kB / 368.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1175, allocations: 0 / 368.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007268/0.1183, allocations: 220.7 kB / 369.1 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.1185, allocations: 35.91 kB / 369.1 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1738/0.2923, allocations: 2.752 MB / 371.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.2926, allocations: 34.3 kB / 371.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.2927, allocations: 13.08 kB / 371.9 MB, free: 18.98 MB / 302.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.000147/0.2928, allocations: 133.3 kB / 372.1 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.741e-05/0.2929, allocations: 22.28 kB / 372.1 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5e-05/0.2929, allocations: 26.42 kB / 372.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2929, allocations: 2.25 kB / 372.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2929, allocations: 0.7031 kB / 372.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.293, allocations: 5.344 kB / 372.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003738/0.2933, allocations: 321.7 kB / 372.4 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.2933, allocations: 1.703 kB / 372.4 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001706/0.2935, allocations: 31.52 kB / 372.5 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006859/0.2942, allocations: 219.3 kB / 372.7 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.2943, allocations: 6.656 kB / 372.7 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006815/0.3011, allocations: 2.735 MB / 375.4 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3011, allocations: 1.156 kB / 375.4 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.3044, allocations: 0.8426 MB / 376.3 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.113e-05/0.3045, allocations: 98.97 kB / 376.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.3045, allocations: 5.25 kB / 376.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002948/0.3048, allocations: 30.55 kB / 376.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/0.3049, allocations: 16.48 kB / 376.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.3049, allocations: 9.109 kB / 376.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001213/0.305, allocations: 161.4 kB / 376.6 MB, free: 16.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.305, allocations: 0 / 376.6 MB, free: 16.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004556/0.3055, allocations: 82.56 kB / 376.7 MB, free: 16.81 MB / 302.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.003474/0.309, allocations: 1.377 MB / 378 MB, free: 16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001614/0.3106, allocations: 443.2 kB / 378.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3106, allocations: 5.156 kB / 378.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.3117, allocations: 336 kB / 378.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000387/0.3121, allocations: 34.77 kB / 378.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008463/0.3206, allocations: 3.352 MB / 382.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.3209, allocations: 0.7451 MB / 382.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.321, allocations: 12.84 kB / 383 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.211e-05/0.3211, allocations: 70.14 kB / 383 MB, free: 13.14 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3211, allocations: 4 kB / 383 MB, free: 13.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02967/0.3508, allocations: 7.237 MB / 390.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.49, allocations: 9.359 kB / 390.3 MB, free: 10.72 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv","/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_trunk_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches