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.001606/0.001606, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002015/0.002015, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2627, allocations: 50.53 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.00461/0.2673, allocations: 2.734 MB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.2691, allocations: 0.705 MB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002685/0.2694, allocations: 7.938 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002096/0.2697, allocations: 47.56 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002585/0.2699, allocations: 79.28 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.2704, allocations: 111.8 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005435/0.271, allocations: 366.5 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/0.2712, allocations: 88.62 kB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003685/0.2716, allocations: 147.5 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002751/0.2719, allocations: 167.3 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.13e-05/0.272, allocations: 32 kB / 413.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.2721, allocations: 32 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.198e-05/0.2722, allocations: 67.8 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.2723, allocations: 143.3 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004751/0.2728, allocations: 357.5 kB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2728, allocations: 0 / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.2728, allocations: 0 / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.2729, allocations: 0 / 413.8 MB, free: 12.47 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.001576/0.2744, allocations: 0.6508 MB / 414.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.2745, allocations: 8.031 kB / 414.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.465e-05/0.2746, allocations: 58.73 kB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.2748, allocations: 40.73 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003766/0.2752, allocations: 260.8 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.2752, allocations: 16.81 kB / 414.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-05/0.2752, allocations: 24.38 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006412/0.2759, allocations: 298.7 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.2759, allocations: 4 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.796e-05/0.2759, allocations: 8 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.276, allocations: 4 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000779/0.2767, allocations: 265.6 kB / 415.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.2784, allocations: 1.07 MB / 416.5 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.2803, allocations: 434 kB / 416.9 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004049/0.2807, allocations: 152.7 kB / 417.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.2808, allocations: 4 kB / 417.1 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.2808, allocations: 30.56 kB / 417.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.753e-06/0.2808, allocations: 0 / 417.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.004689/0.2855, allocations: 1.026 MB / 418.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.2855, allocations: 51.41 kB / 418.2 MB, free: 7.852 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002267/0.2858, allocations: 229 kB / 418.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.2858, allocations: 25.7 kB / 418.4 MB, free: 7.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.2859, allocations: 164.2 kB / 418.6 MB, free: 7.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5e-05/0.286, allocations: 47.64 kB / 418.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.166e-05/0.2861, allocations: 37.64 kB / 418.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.2862, allocations: 330.8 kB / 419 MB, free: 7.004 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.2865, allocations: 107.9 kB / 419.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003318/0.2869, allocations: 129.5 kB / 419.2 MB, free: 6.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006623/0.2875, allocations: 227.5 kB / 419.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.2875, allocations: 7.875 kB / 419.5 MB, free: 6.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002796/0.2903, allocations: 0.6268 MB / 420.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.2904, allocations: 4 kB / 420.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.2904, allocations: 4 kB / 420.1 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007317/0.2911, allocations: 224.6 kB / 420.3 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.2913, allocations: 31.98 kB / 420.3 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006824/0.2982, allocations: 2.747 MB / 423.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003131/0.2985, allocations: 43.95 kB / 423.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.2985, allocations: 11.92 kB / 423.1 MB, free: 2.695 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.0001958/0.2987, allocations: 133.7 kB / 423.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.862e-05/0.2988, allocations: 19.91 kB / 423.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.936e-05/0.2989, allocations: 25.83 kB / 423.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.2989, allocations: 4 kB / 423.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.2989, allocations: 0 / 423.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.2989, allocations: 4 kB / 423.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004339/0.2994, allocations: 329.3 kB / 423.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.2994, allocations: 0 / 423.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.2995, allocations: 23.98 kB / 423.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006592/0.3002, allocations: 216.7 kB / 423.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.3002, allocations: 7.984 kB / 423.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006466/0.3067, allocations: 2.739 MB / 426.6 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3068, allocations: 0 / 426.6 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.3098, allocations: 0.8473 MB / 427.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.399e-05/0.31, allocations: 96.94 kB / 427.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.244e-05/0.31, allocations: 11.98 kB / 427.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.3103, allocations: 36.03 kB / 427.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.3104, allocations: 8 kB / 427.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.3104, allocations: 7.984 kB / 427.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001492/0.3105, allocations: 164.5 kB / 427.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3105, allocations: 0 / 427.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004597/0.311, allocations: 75.89 kB / 427.9 MB, free: 13.72 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.003387/0.3144, allocations: 1.396 MB / 429.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.3159, allocations: 449.4 kB / 429.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.316, allocations: 0 / 429.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.317, allocations: 326.5 kB / 430 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003758/0.3174, allocations: 36.58 kB / 430.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008155/0.3256, allocations: 3.368 MB / 433.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.3259, allocations: 0.7437 MB / 434.2 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.232e-05/0.326, allocations: 13.55 kB / 434.2 MB, free: 7.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.345e-05/0.3261, allocations: 67.42 kB / 434.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3261, allocations: 0 / 434.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.3555, allocations: 7.346 MB / 441.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.53, allocations: 16 kB / 441.6 MB, free: 15.97 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.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