Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE.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.001889/0.001889, allocations: 116.8 kB / 17.16 MB, free: 5.895 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.001535/0.001535, allocations: 212 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 207.6 MB / 230.5 MB, free: 4.012 MB / 174.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06796/0.06796, allocations: 14.4 MB / 296.8 MB, free: 1.883 MB / 238.1 MB " [Timeout remaining time 180] Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) 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.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(PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTerminalVoltageTransducerIEEE",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTerminalVoltageTransducerIEEE",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003155/0.003155, allocations: 71.91 kB / 418.3 MB, free: 6.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2634, allocations: 52.88 MB / 471.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE): time 0.00332/0.2667, allocations: 1.926 MB / 473.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007838/0.2675, allocations: 376.5 kB / 473.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.2676, allocations: 4.594 kB / 473.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000233/0.2679, allocations: 75.67 kB / 473.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001496/0.268, allocations: 38.83 kB / 473.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005191/0.2685, allocations: 230.8 kB / 473.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.2688, allocations: 158.9 kB / 473.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.269, allocations: 68.41 kB / 474 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.607e-05/0.269, allocations: 61.59 kB / 474.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.2691, allocations: 71.17 kB / 474.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.795e-05/0.2692, allocations: 17.56 kB / 474.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.2693, allocations: 53.11 kB / 474.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.898e-05/0.2693, allocations: 45.3 kB / 474.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.366e-05/0.2694, allocations: 76.58 kB / 474.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003341/0.2697, allocations: 251.8 kB / 474.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2697, allocations: 0 / 474.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2697, allocations: 0 / 474.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.2697, allocations: 4 kB / 474.6 MB, free: 10.1 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.001095/0.2708, allocations: 0.5298 MB / 475.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.2709, allocations: 12.03 kB / 475.1 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.505e-05/0.2709, allocations: 8.188 kB / 475.1 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.798e-05/0.271, allocations: 50.73 kB / 475.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.047e-05/0.271, allocations: 24.8 kB / 475.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003285/0.2713, allocations: 240 kB / 475.4 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.2714, allocations: 8.375 kB / 475.4 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.2714, allocations: 20.38 kB / 475.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.2717, allocations: 178.1 kB / 475.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.2717, allocations: 3.938 kB / 475.6 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.2717, allocations: 4 kB / 475.6 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.2718, allocations: 8 kB / 475.6 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.272, allocations: 128 kB / 475.8 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.273, allocations: 0.6485 MB / 476.4 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001546/0.2732, allocations: 66.5 kB / 476.5 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.187e-05/0.2732, allocations: 28.98 kB / 476.5 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.2733, allocations: 0 / 476.5 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.2733, allocations: 30.56 kB / 476.5 MB, free: 7.953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.433e-06/0.2733, allocations: 0 / 476.5 MB, free: 7.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003141/0.2736, allocations: 133.4 kB / 476.7 MB, free: 7.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.2736, allocations: 59.41 kB / 476.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.2739, allocations: 253 kB / 477 MB, free: 7.492 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.2739, allocations: 37.64 kB / 477 MB, free: 7.449 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.274, allocations: 136 kB / 477.1 MB, free: 7.312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.2741, allocations: 19.84 kB / 477.2 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/0.2741, allocations: 17.72 kB / 477.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.2743, allocations: 330.8 kB / 477.5 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.473e-05/0.2743, allocations: 32 kB / 477.5 MB, free: 6.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.773e-05/0.2744, allocations: 28.23 kB / 477.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000124/0.2745, allocations: 68.86 kB / 477.6 MB, free: 6.809 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2745, allocations: 8 kB / 477.6 MB, free: 6.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002096/0.2747, allocations: 129.5 kB / 477.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.2748, allocations: 11.94 kB / 477.8 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.197e-06/0.2748, allocations: 0 / 477.8 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.2748, allocations: 0 / 477.8 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.2749, allocations: 15.98 kB / 477.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.2749, allocations: 0 / 477.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.44e-05/0.275, allocations: 11.89 kB / 477.8 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.275, allocations: 0 / 477.8 MB, free: 6.629 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000112/0.2751, allocations: 129.8 kB / 477.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.951e-05/0.2751, allocations: 23.8 kB / 477.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.155e-05/0.2752, allocations: 25.3 kB / 478 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2752, allocations: 0 / 478 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2752, allocations: 0 / 478 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2752, allocations: 3.984 kB / 478 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007865/0.276, allocations: 0.5094 MB / 478.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.276, allocations: 0 / 478.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.724e-05/0.2761, allocations: 8 kB / 478.5 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.2761, allocations: 7.938 kB / 478.5 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.2761, allocations: 0 / 478.5 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.2761, allocations: 4 kB / 478.5 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2761, allocations: 4.172 kB / 478.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003309/0.2764, allocations: 267 kB / 478.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.423e-05/0.2765, allocations: 104.9 kB / 478.9 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.2765, allocations: 11.94 kB / 478.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.543e-05/0.2766, allocations: 0 / 478.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.265e-05/0.2766, allocations: 7.938 kB / 478.9 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.2766, allocations: 4.062 kB / 478.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001901/0.2768, allocations: 192.4 kB / 479.1 MB, free: 5.211 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2768, allocations: 0 / 479.1 MB, free: 5.211 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.2771, allocations: 24 kB / 479.1 MB, free: 5.188 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (terminalVoltageTransducer.firstOrder.y) * 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006402/0.2777, allocations: 0.8134 MB / 479.9 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001777/0.2779, allocations: 71.91 kB / 480 MB, free: 4.262 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2779, allocations: 0 / 480 MB, free: 4.262 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.279e-05/0.278, allocations: 40.05 kB / 480 MB, free: 4.223 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.2783, allocations: 28.36 kB / 480.1 MB, free: 4.195 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.2808, allocations: 2.156 MB / 482.2 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.2811, allocations: 0.7202 MB / 482.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.355e-05/0.2812, allocations: 17.42 kB / 483 MB, free: 1.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.631e-05/0.2813, allocations: 55.42 kB / 483 MB, free: 1.125 MB / 334.1 MB Notification: Performance of SimCode: time 6.92e-07/0.2813, allocations: 0 / 483 MB, free: 1.125 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.3024, allocations: 3.642 MB / 486.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.427/8.729, allocations: 4 kB / 486.7 MB, free: 13.49 MB / 350.1 MB " [Timeout remaining time 651] (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTerminalVoltageTransducerIEEE_fmu --startTime=0 --stopTime=10 --stepSize=0.02 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTerminalVoltageTransducerIEEE.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE.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: 11.196330381964799]