Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 123.4 kB / 17.79 MB, free: 5.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 204.3 kB / 20.74 MB, free: 2.34 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 47.94 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1041, allocations: 53.33 MB / 426.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004015/0.1081, allocations: 2.728 MB / 429 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.1095, allocations: 0.7206 MB / 429.8 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.1096, allocations: 7.938 kB / 429.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.1098, allocations: 43.56 kB / 429.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.11, allocations: 75.28 kB / 429.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003898/0.1104, allocations: 111.8 kB / 430 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004292/0.1108, allocations: 366.5 kB / 430.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.111, allocations: 60.73 kB / 430.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/0.1113, allocations: 155.5 kB / 430.6 MB, free: 492 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002149/0.1115, allocations: 163.3 kB / 430.7 MB, free: 328 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.1116, allocations: 32 kB / 430.8 MB, free: 296 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.185e-05/0.1117, allocations: 32 kB / 430.8 MB, free: 264 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.226e-05/0.1117, allocations: 71.75 kB / 430.9 MB, free: 192 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.1119, allocations: 139.3 kB / 431 MB, free: 52 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1996/0.3114, allocations: 354.1 kB / 431.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3114, allocations: 0.6875 kB / 431.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3114, allocations: 0 / 431.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.3114, allocations: 0.5938 kB / 431.3 MB, free: 8.035 MB / 350.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.001373/0.3128, allocations: 0.6483 MB / 432 MB, free: 7.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.3129, allocations: 9.969 kB / 432 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.051e-05/0.3129, allocations: 57.2 kB / 432.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.3131, allocations: 45.11 kB / 432.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.3134, allocations: 259.5 kB / 432.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.3134, allocations: 14.58 kB / 432.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.823e-05/0.3135, allocations: 22 kB / 432.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006205/0.3141, allocations: 302.6 kB / 432.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3141, allocations: 0.5312 kB / 432.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.3142, allocations: 12.97 kB / 432.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.3142, allocations: 5.438 kB / 432.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007619/0.3149, allocations: 267.8 kB / 433 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.3163, allocations: 1.071 MB / 434 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001847/0.3182, allocations: 427.5 kB / 434.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003735/0.3186, allocations: 138.5 kB / 434.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.3186, allocations: 1.188 kB / 434.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.3186, allocations: 35.34 kB / 434.6 MB, free: 6.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.733e-06/0.3186, allocations: 0 / 434.6 MB, free: 6.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.004936/0.3235, allocations: 1.023 MB / 435.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.3236, allocations: 56.53 kB / 435.7 MB, free: 6.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.3238, allocations: 217.4 kB / 435.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.3238, allocations: 28.83 kB / 435.9 MB, free: 6.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.879e-05/0.3239, allocations: 165.9 kB / 436.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.213e-05/0.3239, allocations: 45.28 kB / 436.2 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.277e-05/0.324, allocations: 42.98 kB / 436.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.809e-05/0.3241, allocations: 329.1 kB / 436.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.3244, allocations: 108.6 kB / 436.6 MB, free: 5.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003383/0.3248, allocations: 129.2 kB / 436.7 MB, free: 5.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006559/0.3254, allocations: 230.5 kB / 437 MB, free: 5.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3254, allocations: 0 / 437 MB, free: 5.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002865/0.3283, allocations: 0.6292 MB / 437.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3283, allocations: 6.062 kB / 437.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.3283, allocations: 4 kB / 437.6 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007371/0.3291, allocations: 217 kB / 437.8 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.3292, allocations: 40.34 kB / 437.9 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006716/0.3359, allocations: 2.743 MB / 440.6 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003314/0.3363, allocations: 37.55 kB / 440.6 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.3363, allocations: 11.92 kB / 440.7 MB, free: 4.07 MB / 350.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.0001514/0.3365, allocations: 132.4 kB / 440.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.775e-05/0.3365, allocations: 19 kB / 440.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.995e-05/0.3366, allocations: 23.69 kB / 440.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3366, allocations: 2.656 kB / 440.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.3366, allocations: 4 kB / 440.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.3366, allocations: 0.7969 kB / 440.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003871/0.337, allocations: 332.5 kB / 441.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.337, allocations: 1.562 kB / 441.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.3371, allocations: 34.62 kB / 441.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007502/0.3379, allocations: 214.7 kB / 441.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.3379, allocations: 13.06 kB / 441.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006395/0.3443, allocations: 2.734 MB / 444.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3443, allocations: 0 / 444.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003345/0.3477, allocations: 0.8471 MB / 445 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.3478, allocations: 99.73 kB / 445.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.899e-05/0.3478, allocations: 9.797 kB / 445.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/0.3481, allocations: 33.41 kB / 445.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/0.3482, allocations: 12.78 kB / 445.1 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.217e-05/0.3482, allocations: 5.234 kB / 445.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001742/0.3484, allocations: 162.9 kB / 445.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3484, allocations: 0 / 445.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005462/0.3489, allocations: 77.45 kB / 445.4 MB, free: 1.414 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.003499/0.3524, allocations: 1.388 MB / 446.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.354, allocations: 440.8 kB / 447.2 MB, free: 436 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.354, allocations: 0 / 447.2 MB, free: 436 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.3551, allocations: 326 kB / 447.5 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004717/0.3556, allocations: 47.72 kB / 447.6 MB, free: 268 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009511/0.3651, allocations: 3.344 MB / 450.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.3655, allocations: 0.7475 MB / 451.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.3656, allocations: 15.45 kB / 451.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.3658, allocations: 66.52 kB / 451.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of SimCode: time 1.543e-06/0.3658, allocations: 0 / 451.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04791/0.4137, allocations: 7.387 MB / 459.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.91, allocations: 20.34 kB / 459.2 MB, free: 10.86 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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 7.9968e-05 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.45948024399695]