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.001662/0.001662, allocations: 118.2 kB / 17.79 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001876/0.001876, allocations: 206 kB / 18.74 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 72.11 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2802, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.006189/0.2865, allocations: 2.724 MB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.2884, allocations: 0.7128 MB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.2886, allocations: 4 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002249/0.2888, allocations: 43.58 kB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002317/0.2891, allocations: 75.27 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005156/0.2896, allocations: 111.8 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005672/0.2902, allocations: 354.6 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000293/0.2905, allocations: 92.69 kB / 412.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003485/0.2909, allocations: 147.5 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003457/0.2912, allocations: 163.3 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.431e-05/0.2913, allocations: 32 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.2915, allocations: 32 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.37e-05/0.2916, allocations: 71.8 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.2918, allocations: 147.3 kB / 413.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005647/0.2924, allocations: 361.5 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2924, allocations: 0 / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2924, allocations: 0 / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.2924, allocations: 0 / 413.8 MB, free: 12.48 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.002263/0.2947, allocations: 0.6391 MB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.2948, allocations: 8.031 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001083/0.2949, allocations: 66.67 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002695/0.2952, allocations: 40.73 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005567/0.2957, allocations: 264.8 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.2958, allocations: 20.8 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.01e-05/0.2959, allocations: 16.38 kB / 414.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.297, allocations: 302.8 kB / 415.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.297, allocations: 0 / 415.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.386e-05/0.2971, allocations: 12 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.2971, allocations: 7.984 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.2984, allocations: 269.5 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.3011, allocations: 1.058 MB / 416.5 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003229/0.3044, allocations: 442.3 kB / 416.9 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006442/0.305, allocations: 140.8 kB / 417.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.3051, allocations: 0 / 417.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.235e-05/0.3051, allocations: 42.55 kB / 417.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.365e-06/0.3052, allocations: 4 kB / 417.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.00848/0.3136, allocations: 1.018 MB / 418.1 MB, free: 7.926 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/0.3137, allocations: 51.41 kB / 418.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/0.3141, allocations: 225 kB / 418.4 MB, free: 7.637 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.833e-05/0.3142, allocations: 25.7 kB / 418.4 MB, free: 7.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.3144, allocations: 164.2 kB / 418.6 MB, free: 7.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.306e-05/0.3145, allocations: 43.64 kB / 418.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.3147, allocations: 45.64 kB / 418.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.3149, allocations: 334.8 kB / 419 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006071/0.3155, allocations: 99.94 kB / 419.1 MB, free: 6.914 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006117/0.3161, allocations: 129.5 kB / 419.2 MB, free: 6.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.3172, allocations: 225.5 kB / 419.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3172, allocations: 3.938 kB / 419.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.005235/0.3225, allocations: 0.6377 MB / 420.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.3225, allocations: 4 kB / 420.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.3225, allocations: 0 / 420.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.3238, allocations: 216.7 kB / 420.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.3241, allocations: 39.92 kB / 420.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01205/0.3361, allocations: 2.762 MB / 423.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005328/0.3367, allocations: 39.81 kB / 423.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.3367, allocations: 7.984 kB / 423.1 MB, free: 2.703 MB / 334.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.0002629/0.337, allocations: 137.8 kB / 423.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-05/0.3371, allocations: 15.91 kB / 423.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.991e-05/0.3372, allocations: 25.83 kB / 423.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3372, allocations: 0 / 423.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3373, allocations: 0 / 423.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3373, allocations: 0 / 423.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006917/0.338, allocations: 329.3 kB / 423.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.338, allocations: 0 / 423.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002954/0.3383, allocations: 31.92 kB / 423.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001195/0.3395, allocations: 224.6 kB / 423.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.3396, allocations: 4 kB / 423.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01292/0.3525, allocations: 2.735 MB / 426.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3526, allocations: 0 / 426.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006361/0.3589, allocations: 0.8473 MB / 427.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.3591, allocations: 104.9 kB / 427.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.213e-05/0.3592, allocations: 4.062 kB / 427.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000561/0.3598, allocations: 35.97 kB / 427.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.738e-05/0.3599, allocations: 7.984 kB / 427.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/0.3599, allocations: 4 kB / 427.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003075/0.3602, allocations: 160.5 kB / 427.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.3602, allocations: 0 / 427.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008427/0.3611, allocations: 83.89 kB / 427.9 MB, free: 13.73 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.006787/0.3679, allocations: 1.388 MB / 429.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.3708, allocations: 446.4 kB / 429.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3708, allocations: 0 / 429.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002053/0.3729, allocations: 326.6 kB / 430 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006495/0.3736, allocations: 44.53 kB / 430.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01337/0.387, allocations: 3.356 MB / 433.4 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.3874, allocations: 0.7476 MB / 434.2 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.052e-05/0.3875, allocations: 17.55 kB / 434.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3876, allocations: 67.41 kB / 434.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3876, allocations: 0 / 434.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03697/0.4246, allocations: 7.349 MB / 441.6 MB, free: 0 / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.24, allocations: 4.203 kB / 441.6 MB, free: 15.99 MB / 366.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.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) Reference file matches