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.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) 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.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(PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTerminalVoltageTransducerIEEE",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTerminalVoltageTransducerIEEE",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.007025/0.007025, allocations: 99.66 kB / 15.73 MB, free: 6.047 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.001126/0.001126, allocations: 188 kB / 16.67 MB, free: 5.977 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.371/1.371, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06414/0.06414, allocations: 14.18 MB / 284.1 MB, free: 6.988 MB / 238.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.002907/0.002907, allocations: 71.91 kB / 398.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.284, allocations: 50.13 MB / 448.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE): time 0.002842/0.2869, allocations: 1.929 MB / 450.2 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007307/0.2877, allocations: 379.1 kB / 450.5 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.2878, allocations: 4.125 kB / 450.5 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002462/0.2881, allocations: 72.33 kB / 450.6 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.2883, allocations: 34.56 kB / 450.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004667/0.2888, allocations: 231.5 kB / 450.9 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002707/0.2891, allocations: 158.7 kB / 451 MB, free: 484 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.2892, allocations: 84.89 kB / 451.1 MB, free: 436 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.795e-05/0.2893, allocations: 58.8 kB / 451.2 MB, free: 392 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.554e-05/0.2894, allocations: 75.94 kB / 451.2 MB, free: 328 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.2894, allocations: 17.88 kB / 451.3 MB, free: 328 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.2895, allocations: 49.11 kB / 451.3 MB, free: 316 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.717e-05/0.2896, allocations: 45.34 kB / 451.3 MB, free: 276 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.271e-05/0.2896, allocations: 76.92 kB / 451.4 MB, free: 212 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.2899, allocations: 243.2 kB / 451.7 MB, free: 24 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2899, allocations: 0 / 451.7 MB, free: 24 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2899, allocations: 1.344 kB / 451.7 MB, free: 24 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.2899, allocations: 0 / 451.7 MB, free: 24 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.001063/0.291, allocations: 0.5325 MB / 452.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.2911, allocations: 8.656 kB / 452.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.469e-05/0.2911, allocations: 52.73 kB / 452.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.292e-05/0.2912, allocations: 22.28 kB / 452.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.2915, allocations: 228.8 kB / 452.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.2915, allocations: 11.34 kB / 452.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.497e-05/0.2916, allocations: 20.28 kB / 452.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.2919, allocations: 179.4 kB / 452.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.2919, allocations: 5.469 kB / 452.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.2919, allocations: 5.25 kB / 452.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.2919, allocations: 4.219 kB / 452.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002235/0.2922, allocations: 126.7 kB / 452.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009999/0.2932, allocations: 0.6578 MB / 453.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.2933, allocations: 62.72 kB / 453.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.65e-05/0.2934, allocations: 37.22 kB / 453.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.2934, allocations: 0 / 453.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.2935, allocations: 31.72 kB / 453.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.2935, allocations: 0 / 453.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002854/0.2938, allocations: 134.2 kB / 453.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.97e-05/0.2938, allocations: 56.84 kB / 453.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.2941, allocations: 256.3 kB / 454.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.2941, allocations: 25.7 kB / 454.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.618e-05/0.2942, allocations: 141.7 kB / 454.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.2942, allocations: 10.16 kB / 454.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.589e-05/0.2943, allocations: 27.42 kB / 454.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.2944, allocations: 327.4 kB / 454.6 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.557e-05/0.2945, allocations: 34.27 kB / 454.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.437e-05/0.2945, allocations: 31.12 kB / 454.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.2947, allocations: 73.81 kB / 454.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2947, allocations: 0 / 454.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001966/0.2949, allocations: 124.6 kB / 454.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.2949, allocations: 8.5 kB / 454.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.2949, allocations: 5.172 kB / 454.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.2949, allocations: 0 / 454.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.295, allocations: 10.53 kB / 454.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2951, allocations: 1.031 kB / 454.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.403e-05/0.2951, allocations: 27.16 kB / 454.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.2952, allocations: 2.281 kB / 454.9 MB, free: 13.27 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.0001/0.2953, allocations: 125.6 kB / 455 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.49e-05/0.2953, allocations: 20.91 kB / 455 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.459e-05/0.2954, allocations: 21.89 kB / 455.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.2954, allocations: 1 kB / 455.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2954, allocations: 0 / 455.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2954, allocations: 1.125 kB / 455.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007739/0.2962, allocations: 0.5098 MB / 455.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2962, allocations: 1.281 kB / 455.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.979e-05/0.2963, allocations: 11.5 kB / 455.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.2963, allocations: 1.469 kB / 455.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.2963, allocations: 6.547 kB / 455.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2963, allocations: 1.469 kB / 455.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2963, allocations: 5.531 kB / 455.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.2966, allocations: 265.3 kB / 455.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.086e-05/0.2967, allocations: 97.84 kB / 456 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.2967, allocations: 6.656 kB / 456 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.628e-05/0.2968, allocations: 9.188 kB / 456 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.443e-05/0.2969, allocations: 11.73 kB / 456 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.2969, allocations: 6.812 kB / 456 MB, free: 12.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001728/0.2971, allocations: 186.9 kB / 456.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2971, allocations: 1.125 kB / 456.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002632/0.2973, allocations: 22.66 kB / 456.2 MB, free: 12.11 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.0006371/0.298, allocations: 0.7994 MB / 457 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001849/0.2982, allocations: 79.08 kB / 457.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2982, allocations: 1.312 kB / 457.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.471e-05/0.2982, allocations: 26.22 kB / 457.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.2986, allocations: 35.52 kB / 457.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002659/0.3013, allocations: 2.146 MB / 459.3 MB, free: 9.539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.3017, allocations: 0.7238 MB / 460 MB, free: 8.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.426e-05/0.3017, allocations: 12.11 kB / 460 MB, free: 8.816 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.896e-05/0.3018, allocations: 50.8 kB / 460.1 MB, free: 8.773 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3019, allocations: 0 / 460.1 MB, free: 8.773 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03019/0.3321, allocations: 3.572 MB / 463.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.53/7.863, allocations: 9.094 kB / 463.6 MB, free: 6.855 MB / 334.1 MB (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 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTerminalVoltageTransducerIEEE.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTerminalVoltageTransducerIEEE.pipe 2>&1) 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) Reference file matches