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.00115/0.00115, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001166/0.001166, allocations: 188.2 kB / 18.67 MB, free: 4.402 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.414/1.414, allocations: 205.1 MB / 224.5 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.001103/0.001103, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1027, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004392/0.1072, allocations: 2.668 MB / 377.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.1087, allocations: 0.7096 MB / 378 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002559/0.109, allocations: 4 kB / 378 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002361/0.1093, allocations: 47.5 kB / 378.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002889/0.1096, allocations: 71.34 kB / 378.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.11, allocations: 103.8 kB / 378.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000539/0.1106, allocations: 366.4 kB / 378.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.1108, allocations: 100.6 kB / 378.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003294/0.1111, allocations: 139.5 kB / 378.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/0.1114, allocations: 163.3 kB / 379 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.199e-05/0.1115, allocations: 32 kB / 379 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.072e-05/0.1116, allocations: 32 kB / 379.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.848e-05/0.1116, allocations: 71.75 kB / 379.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.1118, allocations: 135.4 kB / 379.3 MB, free: 444 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004336/0.1123, allocations: 350.6 kB / 379.6 MB, free: 92 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1123, allocations: 0 / 379.6 MB, free: 92 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1123, allocations: 4 kB / 379.6 MB, free: 88 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.825e-05/0.1123, allocations: 0 / 379.6 MB, free: 88 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.1964/0.3088, allocations: 0.6415 MB / 380.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.3088, allocations: 9.719 kB / 380.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.676e-05/0.3089, allocations: 52.27 kB / 380.3 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.233e-05/0.309, allocations: 31.06 kB / 380.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.3093, allocations: 261.6 kB / 380.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.3094, allocations: 12.75 kB / 380.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.234e-05/0.3094, allocations: 20.89 kB / 380.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007021/0.3101, allocations: 303.5 kB / 380.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.3102, allocations: 3.938 kB / 380.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.3102, allocations: 9.375 kB / 380.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.3102, allocations: 6.344 kB / 380.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008054/0.311, allocations: 264.5 kB / 381.2 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001756/0.3128, allocations: 1.06 MB / 382.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.3151, allocations: 440.6 kB / 382.7 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004261/0.3155, allocations: 141.5 kB / 382.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.3156, allocations: 5.922 kB / 382.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.3156, allocations: 37.83 kB / 382.9 MB, free: 11.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.763e-06/0.3156, allocations: 0.7656 kB / 382.9 MB, free: 11.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.005059/0.3207, allocations: 1.027 MB / 383.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.3207, allocations: 56.59 kB / 384 MB, free: 11.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.321, allocations: 212.8 kB / 384.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.321, allocations: 31.55 kB / 384.2 MB, free: 11.42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.051e-05/0.3211, allocations: 159 kB / 384.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.322e-05/0.3212, allocations: 60.14 kB / 384.4 MB, free: 11.24 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.158e-05/0.3212, allocations: 37.83 kB / 384.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.737e-05/0.3213, allocations: 334.7 kB / 384.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00037/0.3217, allocations: 105.5 kB / 384.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003708/0.3221, allocations: 123.1 kB / 385 MB, free: 10.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006495/0.3228, allocations: 224.9 kB / 385.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.3228, allocations: 0 / 385.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002904/0.3257, allocations: 0.6411 MB / 385.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.3257, allocations: 6.406 kB / 385.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3257, allocations: 0.9688 kB / 385.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007998/0.3265, allocations: 219.4 kB / 386.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.3267, allocations: 40.5 kB / 386.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006808/0.3335, allocations: 2.739 MB / 388.9 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.3339, allocations: 33.41 kB / 388.9 MB, free: 8.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.3339, allocations: 6.766 kB / 388.9 MB, free: 8.719 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.0001581/0.3341, allocations: 142.8 kB / 389 MB, free: 8.578 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.241e-05/0.3342, allocations: 26.7 kB / 389.1 MB, free: 8.562 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.831e-05/0.3342, allocations: 20.91 kB / 389.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3342, allocations: 1.594 kB / 389.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3342, allocations: 1.5 kB / 389.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3342, allocations: 4.969 kB / 389.1 MB, free: 8.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003948/0.3346, allocations: 332.9 kB / 389.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.3347, allocations: 0 / 389.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.3348, allocations: 33.06 kB / 389.4 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006935/0.3355, allocations: 223.4 kB / 389.7 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.3356, allocations: 7.781 kB / 389.7 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006448/0.342, allocations: 2.734 MB / 392.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.342, allocations: 0 / 392.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003304/0.3454, allocations: 0.8531 MB / 393.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.753e-05/0.3455, allocations: 99.98 kB / 393.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.3455, allocations: 1.125 kB / 393.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/0.3458, allocations: 33.89 kB / 393.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.3459, allocations: 8.5 kB / 393.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-05/0.3459, allocations: 6.844 kB / 393.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001965/0.3462, allocations: 164 kB / 393.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3462, allocations: 0 / 393.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005312/0.3467, allocations: 78.7 kB / 393.6 MB, free: 5.906 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.003544/0.3503, allocations: 1.384 MB / 395 MB, free: 5.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001651/0.3519, allocations: 455 kB / 395.5 MB, free: 4.906 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3519, allocations: 0 / 395.5 MB, free: 4.906 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.353, allocations: 332.6 kB / 395.8 MB, free: 4.754 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003941/0.3534, allocations: 34.84 kB / 395.8 MB, free: 4.742 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00836/0.3618, allocations: 3.337 MB / 399.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/0.3621, allocations: 0.7435 MB / 399.9 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001196/0.3622, allocations: 18.56 kB / 399.9 MB, free: 2.262 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.3623, allocations: 67.03 kB / 400 MB, free: 2.211 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3623, allocations: 1.5 kB / 400 MB, free: 2.211 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0299/0.3922, allocations: 7.332 MB / 407.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.55, allocations: 11.73 kB / 407.3 MB, free: 14.55 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