Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009014/0.0009014, allocations: 84.33 kB / 20.67 MB, free: 3.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009819/0.0009819, allocations: 160.9 kB / 23.94 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9009/0.9009, allocations: 177.1 MB / 204.2 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2582/0.2582, allocations: 34.24 MB / 294.9 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 442.2 MB, free: 1.625 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.457e-05/2.671e-05, allocations: 2.281 kB / 442.2 MB, free: 1.621 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.202/0.2021, allocations: 10.31 MB / 452.5 MB, free: 38.47 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.006176/0.2082, allocations: 3.745 MB / 456.3 MB, free: 35.85 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00236/0.2106, allocations: 97.22 kB / 456.4 MB, free: 35.81 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002413/0.213, allocations: 0.8658 MB / 457.2 MB, free: 35.36 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003258/0.2163, allocations: 1.02 MB / 458.2 MB, free: 34.71 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.2174, allocations: 0.5226 MB / 458.8 MB, free: 34.38 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003645/0.2211, allocations: 3.349 MB / 462.1 MB, free: 32.71 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/0.2227, allocations: 1.701 MB / 463.8 MB, free: 31.85 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002575/0.2253, allocations: 2.325 MB / 466.1 MB, free: 30.76 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002071/0.2274, allocations: 1.734 MB / 467.9 MB, free: 30.16 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006684/0.2281, allocations: 430.3 kB / 468.3 MB, free: 30.16 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008078/0.2289, allocations: 0.5446 MB / 468.8 MB, free: 30.12 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006622/0.2295, allocations: 1.269 MB / 470.1 MB, free: 29.42 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.2307, allocations: 1.278 MB / 471.4 MB, free: 28.78 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004991/0.2357, allocations: 5.675 MB / 477.1 MB, free: 26.79 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2357, allocations: 0 / 477.1 MB, free: 26.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2357, allocations: 0 / 477.1 MB, free: 26.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001095/0.2358, allocations: 0 / 477.1 MB, free: 26.79 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.005747/0.2415, allocations: 3.863 MB / 480.9 MB, free: 24.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.2416, allocations: 12.22 kB / 480.9 MB, free: 24.67 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003609/0.242, allocations: 406.5 kB / 481.3 MB, free: 24.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007276/0.2427, allocations: 417.5 kB / 481.7 MB, free: 24.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/0.2453, allocations: 2.019 MB / 483.8 MB, free: 23.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.865e-05/0.2454, allocations: 213.6 kB / 484 MB, free: 23.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002936/0.2457, allocations: 282.2 kB / 484.2 MB, free: 22.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004903/0.2506, allocations: 3.816 MB / 488.1 MB, free: 21.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.767e-05/0.2506, allocations: 8.078 kB / 488.1 MB, free: 21.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.2508, allocations: 112 kB / 488.2 MB, free: 21.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001385/0.2509, allocations: 146.2 kB / 488.3 MB, free: 21.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005035/0.256, allocations: 3.165 MB / 491.5 MB, free: 20.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01457/0.2705, allocations: 10.37 MB / 0.4901 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002592/0.2731, allocations: 1.617 MB / 0.4917 GB, free: 13.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.2746, allocations: 1.126 MB / 0.4928 GB, free: 13.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002567/0.2749, allocations: 58.66 kB / 0.4928 GB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.2749, allocations: 46.34 kB / 0.4929 GB, free: 13.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 3.386e-06/0.2749, allocations: 0 / 0.4929 GB, free: 13.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=154): time 0.01203/0.287, allocations: 7.74 MB / 0.5004 GB, free: 9.773 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.287, allocations: 69.81 kB / 0.5005 GB, free: 9.711 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/0.2891, allocations: 1.976 MB / 0.5024 GB, free: 8.031 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.2892, allocations: 49.7 kB / 0.5025 GB, free: 7.977 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004531/0.2897, allocations: 1.401 MB / 0.5038 GB, free: 6.562 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.2899, allocations: 0.5461 MB / 0.5044 GB, free: 6.012 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002915/0.2902, allocations: 323.5 kB / 0.5047 GB, free: 5.691 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.262e-05/0.2903, allocations: 305.1 kB / 0.505 GB, free: 5.391 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008227/0.2911, allocations: 0.8823 MB / 0.5058 GB, free: 4.508 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.2921, allocations: 1.358 MB / 0.5072 GB, free: 2.965 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001789/0.2939, allocations: 2.389 MB / 0.5095 GB, free: 392 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-06/0.2939, allocations: 4 kB / 0.5095 GB, free: 388 kB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003714/0.2976, allocations: 2.866 MB / 0.5123 GB, free: 13.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.2976, allocations: 8 kB / 0.5123 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.2977, allocations: 16 kB / 0.5123 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005857/0.2983, allocations: 391.4 kB / 0.5127 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.2993, allocations: 443.3 kB / 0.5131 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004271/0.3036, allocations: 6.416 MB / 0.5194 GB, free: 5.883 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/0.3048, allocations: 127.8 kB / 0.5195 GB, free: 5.758 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.305, allocations: 71.98 kB / 0.5196 GB, free: 5.688 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001346/0.3063, allocations: 0.9071 MB / 0.5205 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003948/0.3067, allocations: 218.6 kB / 0.5207 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003587/0.3103, allocations: 2.887 MB / 0.5235 GB, free: 1.641 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.3103, allocations: 20 kB / 0.5235 GB, free: 1.621 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.3103, allocations: 11.94 kB / 0.5235 GB, free: 1.609 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.3103, allocations: 7.969 kB / 0.5235 GB, free: 1.602 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008309/0.3186, allocations: 5.749 MB / 0.5291 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.3186, allocations: 6.5 kB / 0.5291 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005982/0.3192, allocations: 235.6 kB / 0.5294 GB, free: 11.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001472/0.3207, allocations: 0.8092 MB / 0.5302 GB, free: 10.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.355e-05/0.3208, allocations: 35.98 kB / 0.5302 GB, free: 10.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008389/0.3292, allocations: 10.34 MB / 0.5403 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3292, allocations: 7.938 kB / 0.5403 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004843/0.334, allocations: 4.154 MB / 0.5444 GB, free: 11.72 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00093/0.335, allocations: 414.4 kB / 0.5448 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002026/0.3352, allocations: 39.98 kB / 0.5448 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006559/0.3358, allocations: 91.89 kB / 0.5449 GB, free: 11.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002339/0.3361, allocations: 129 kB / 0.545 GB, free: 11.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.486e-05/0.3361, allocations: 47.92 kB / 0.5451 GB, free: 11.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001462/0.3376, allocations: 1.344 MB / 0.5464 GB, free: 9.645 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3376, allocations: 0 / 0.5464 GB, free: 9.645 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001494/0.3391, allocations: 0.5742 MB / 0.5469 GB, free: 9.07 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * 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 (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004816/0.3439, allocations: 4.794 MB / 0.5516 GB, free: 4.191 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003012/0.3469, allocations: 2.483 MB / 0.554 GB, free: 1.668 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.3469, allocations: 4.188 kB / 0.554 GB, free: 1.664 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.3485, allocations: 1.56 MB / 0.5556 GB, free: 72 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/0.3507, allocations: 0.5442 MB / 0.5561 GB, free: 15.55 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03086/0.3816, allocations: 21.47 MB / 0.5771 GB, free: 9.391 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/0.3829, allocations: 1.647 MB / 0.5787 GB, free: 7.711 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001067/0.3839, allocations: 465.9 kB / 0.5791 GB, free: 7.254 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009869/0.3849, allocations: 1.149 MB / 0.5802 GB, free: 6.105 MB / 490.7 MB Notification: Performance of SimCode: time 1.353e-06/0.3849, allocations: 0 / 0.5802 GB, free: 6.105 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2339/0.6188, allocations: 59.89 MB / 0.6387 GB, free: 151.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.428/9.047, allocations: 10.09 kB / 0.6387 GB, free: 151.7 MB / 0.5261 GB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaLoad.phi in file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv. Warning: Get data of variable inertiaLoad.phi from file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv failed! Error: Could not read variable inertiaLoad.w in file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv. Warning: Get data of variable inertiaLoad.w from file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.251591523177922]