Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",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.00163/0.00163, allocations: 105.2 kB / 16.27 MB, free: 5.965 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.001794/0.001794, allocations: 189.4 kB / 17.19 MB, free: 5.602 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.313/1.313, allocations: 205.1 MB / 223.1 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.253/0.253, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 254.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.001695/0.001695, allocations: 67.34 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08906/0.09077, allocations: 57.79 MB / 440.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01097/0.1018, allocations: 11.63 MB / 452.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007144/0.109, allocations: 3.953 MB / 456.2 MB, free: 7.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001076/0.11, allocations: 63.69 kB / 456.3 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001746/0.1118, allocations: 0.8654 MB / 457.1 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002148/0.114, allocations: 0.9473 MB / 458.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009446/0.115, allocations: 0.5227 MB / 458.6 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003012/0.118, allocations: 3.317 MB / 461.9 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003103/0.1211, allocations: 2.988 MB / 464.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001765/0.1229, allocations: 1.542 MB / 466.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002602/0.1255, allocations: 2.001 MB / 468.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006438/0.1262, allocations: 428 kB / 468.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009799/0.1271, allocations: 0.535 MB / 469.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.1283, allocations: 1.227 MB / 470.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001945/0.1302, allocations: 1.898 MB / 472.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004961/0.1352, allocations: 5.491 MB / 478 MB, free: 1.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1352, allocations: 4 kB / 478 MB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1353, allocations: 0 / 478 MB, free: 1.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001025/0.1354, allocations: 0 / 478 MB, free: 1.223 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.007796/0.1432, allocations: 3.829 MB / 481.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.1432, allocations: 11.89 kB / 481.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004999/0.1437, allocations: 409.2 kB / 482.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009749/0.1447, allocations: 396.5 kB / 482.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003261/0.148, allocations: 1.942 MB / 484.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00019/0.1482, allocations: 217.8 kB / 484.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004275/0.1486, allocations: 283.9 kB / 485.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00614/0.1548, allocations: 3.735 MB / 488.8 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.555e-05/0.1549, allocations: 7.906 kB / 488.8 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002733/0.1552, allocations: 112 kB / 488.9 MB, free: 6.098 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001552/0.1553, allocations: 141.5 kB / 489.1 MB, free: 5.957 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005459/0.1608, allocations: 3.164 MB / 492.2 MB, free: 2.781 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01717/0.178, allocations: 11.58 MB / 0.492 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003744/0.1818, allocations: 2.162 MB / 0.4941 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001938/0.1837, allocations: 1.234 MB / 0.4953 GB, free: 3.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003009/0.1841, allocations: 211.5 kB / 0.4955 GB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.1841, allocations: 51.81 kB / 0.4956 GB, free: 3.082 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.507e-06/0.1841, allocations: 4 kB / 0.4956 GB, free: 3.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01816/0.2023, allocations: 8.213 MB / 0.5036 GB, free: 10.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.2024, allocations: 68.72 kB / 0.5037 GB, free: 10.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00275/0.2051, allocations: 1.941 MB / 0.5056 GB, free: 8.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.2053, allocations: 49.7 kB / 0.5056 GB, free: 8.652 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009433/0.2062, allocations: 1.359 MB / 0.5069 GB, free: 7.277 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004562/0.2067, allocations: 0.5198 MB / 0.5074 GB, free: 6.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005328/0.2072, allocations: 323.3 kB / 0.5078 GB, free: 6.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.2073, allocations: 305.1 kB / 0.508 GB, free: 6.129 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.2088, allocations: 0.8823 MB / 0.5089 GB, free: 5.246 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/0.2105, allocations: 1.345 MB / 0.5102 GB, free: 3.711 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003315/0.2138, allocations: 2.386 MB / 0.5125 GB, free: 1.129 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/0.2138, allocations: 11.92 kB / 0.5126 GB, free: 1.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005009/0.2188, allocations: 2.917 MB / 0.5154 GB, free: 14.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.2189, allocations: 12 kB / 0.5154 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/0.2189, allocations: 16 kB / 0.5154 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009231/0.2198, allocations: 399.2 kB / 0.5158 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001699/0.2215, allocations: 443.2 kB / 0.5162 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006317/0.2279, allocations: 6.768 MB / 0.5228 GB, free: 6.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.2296, allocations: 119.8 kB / 0.523 GB, free: 5.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/0.2297, allocations: 71.98 kB / 0.523 GB, free: 5.918 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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.001463/0.2312, allocations: 0.9071 MB / 0.5239 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003771/0.2316, allocations: 213.4 kB / 0.5241 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005073/0.2367, allocations: 2.903 MB / 0.527 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.2367, allocations: 19.94 kB / 0.527 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.2367, allocations: 8 kB / 0.527 GB, free: 1.836 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.2367, allocations: 7.969 kB / 0.527 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1929/0.4296, allocations: 6.16 MB / 0.533 GB, free: 85.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/0.4297, allocations: 4.031 kB / 0.533 GB, free: 85.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.4307, allocations: 239.5 kB / 0.5332 GB, free: 85.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001923/0.4327, allocations: 0.8057 MB / 0.534 GB, free: 85.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.4328, allocations: 44.72 kB / 0.5341 GB, free: 85.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01132/0.4441, allocations: 10.74 MB / 0.5446 GB, free: 79.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/0.4442, allocations: 4.625 kB / 0.5446 GB, free: 79.63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006973/0.4511, allocations: 4.186 MB / 0.5486 GB, free: 77.92 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009356/0.4521, allocations: 483.5 kB / 0.5491 GB, free: 77.72 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002714/0.4524, allocations: 39.19 kB / 0.5491 GB, free: 77.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.4534, allocations: 96.73 kB / 0.5492 GB, free: 77.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002496/0.4537, allocations: 126.5 kB / 0.5494 GB, free: 77.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.041e-05/0.4538, allocations: 51.73 kB / 0.5494 GB, free: 77.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001711/0.4555, allocations: 1.333 MB / 0.5507 GB, free: 77.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4555, allocations: 0 / 0.5507 GB, free: 77.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001695/0.4572, allocations: 0.5696 MB / 0.5513 GB, free: 77.06 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (117): * Single equations (assignments): 114 * 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.0056/0.4628, allocations: 4.824 MB / 0.556 GB, free: 74.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004638/0.4675, allocations: 3.294 MB / 0.5592 GB, free: 72.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.4675, allocations: 4 kB / 0.5592 GB, free: 72.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001911/0.4694, allocations: 1.631 MB / 0.5608 GB, free: 70.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/0.4719, allocations: 0.5453 MB / 0.5613 GB, free: 70.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02677/0.4987, allocations: 23.93 MB / 0.5847 GB, free: 44.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001455/0.5002, allocations: 2.214 MB / 0.5869 GB, free: 42.17 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001345/0.5015, allocations: 466.2 kB / 0.5873 GB, free: 41.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/0.5026, allocations: 1.14 MB / 0.5884 GB, free: 40.59 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5026, allocations: 0 / 0.5884 GB, free: 40.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08842/0.5911, allocations: 54.34 MB / 0.6415 GB, free: 2.215 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.64, allocations: 3.75 kB / 0.6415 GB, free: 2.211 MB / 430.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches