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.001106/0.001106, allocations: 108.4 kB / 16.41 MB, free: 6.461 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.001105/0.001106, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.739/1.739, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2283/0.2283, allocations: 43.52 MB / 314.1 MB, free: 452 kB / 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.001475/0.001475, allocations: 63.91 kB / 441.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1462, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01392/0.1602, allocations: 11.65 MB / 0.4988 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009321/0.1695, allocations: 3.957 MB / 0.5026 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002713/0.1723, allocations: 63.69 kB / 0.5027 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003159/0.1756, allocations: 0.8654 MB / 0.5035 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004894/0.1805, allocations: 0.9434 MB / 0.5045 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002112/0.1826, allocations: 0.5188 MB / 0.505 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006461/0.1891, allocations: 3.344 MB / 0.5082 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005369/0.1945, allocations: 2.977 MB / 0.5111 GB, free: 3.816 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002934/0.1975, allocations: 1.55 MB / 0.5126 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003668/0.2011, allocations: 2.005 MB / 0.5146 GB, free: 256 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001399/0.2026, allocations: 432 kB / 0.515 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001971/0.2046, allocations: 0.5349 MB / 0.5155 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00217/0.2067, allocations: 1.227 MB / 0.5167 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003669/0.2104, allocations: 1.898 MB / 0.5186 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007158/0.2176, allocations: 5.565 MB / 0.524 GB, free: 6.574 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.2176, allocations: 0 / 0.524 GB, free: 6.574 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2176, allocations: 4 kB / 0.524 GB, free: 6.57 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000239/0.2179, allocations: 0 / 0.524 GB, free: 6.57 MB / 414.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.01073/0.2286, allocations: 3.829 MB / 0.5278 GB, free: 2.672 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.129e-05/0.2287, allocations: 15.83 kB / 0.5278 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005787/0.2293, allocations: 405.2 kB / 0.5282 GB, free: 2.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001094/0.2304, allocations: 396.5 kB / 0.5285 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3203/0.5507, allocations: 1.951 MB / 0.5305 GB, free: 36.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000309/0.5511, allocations: 215.6 kB / 0.5307 GB, free: 36.49 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001108/0.5522, allocations: 289.9 kB / 0.5309 GB, free: 36.49 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007161/0.5594, allocations: 3.726 MB / 0.5346 GB, free: 36.2 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.366e-05/0.5595, allocations: 8.188 kB / 0.5346 GB, free: 36.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002369/0.5597, allocations: 113.4 kB / 0.5347 GB, free: 36.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001695/0.5599, allocations: 142.7 kB / 0.5348 GB, free: 36.1 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005815/0.5657, allocations: 3.165 MB / 0.5379 GB, free: 34.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0208/0.5865, allocations: 11.45 MB / 0.5491 GB, free: 29.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003526/0.5901, allocations: 2.168 MB / 0.5512 GB, free: 28.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001907/0.5921, allocations: 1.224 MB / 0.5524 GB, free: 27.53 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002974/0.5924, allocations: 214.7 kB / 0.5526 GB, free: 27.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.5924, allocations: 48.42 kB / 0.5527 GB, free: 27.28 MB / 414.1 MB Notification: Performance of pre-optimization done (n=139): time 3.747e-06/0.5924, allocations: 0 / 0.5527 GB, free: 27.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01882/0.6113, allocations: 8.204 MB / 0.5607 GB, free: 22.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.6113, allocations: 68.53 kB / 0.5607 GB, free: 22.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00288/0.6142, allocations: 1.938 MB / 0.5626 GB, free: 21.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.6144, allocations: 49.33 kB / 0.5627 GB, free: 21.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006394/0.615, allocations: 1.359 MB / 0.564 GB, free: 20.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000316/0.6153, allocations: 0.5247 MB / 0.5645 GB, free: 19.93 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004462/0.6158, allocations: 318.1 kB / 0.5648 GB, free: 19.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.29e-05/0.6158, allocations: 305.1 kB / 0.5651 GB, free: 19.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001238/0.6171, allocations: 0.8871 MB / 0.566 GB, free: 18.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.6184, allocations: 1.349 MB / 0.5673 GB, free: 17.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002457/0.6208, allocations: 2.386 MB / 0.5696 GB, free: 14.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/0.6208, allocations: 4 kB / 0.5696 GB, free: 14.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004126/0.625, allocations: 2.929 MB / 0.5725 GB, free: 11.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.625, allocations: 15.94 kB / 0.5725 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.625, allocations: 12 kB / 0.5725 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007732/0.6258, allocations: 394.5 kB / 0.5729 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/0.6273, allocations: 443.3 kB / 0.5733 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004489/0.6318, allocations: 6.77 MB / 0.5799 GB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.6335, allocations: 119.9 kB / 0.58 GB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.6336, allocations: 68 kB / 0.5801 GB, free: 3.562 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.001476/0.6351, allocations: 0.9186 MB / 0.581 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003966/0.6355, allocations: 209.4 kB / 0.5812 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004395/0.6399, allocations: 2.893 MB / 0.584 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/0.6399, allocations: 16.66 kB / 0.584 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.64, allocations: 12 kB / 0.584 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.553e-05/0.64, allocations: 11.91 kB / 0.5841 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/0.6516, allocations: 6.144 MB / 0.5901 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.6517, allocations: 4 kB / 0.5901 GB, free: 9.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.6527, allocations: 239.6 kB / 0.5903 GB, free: 8.996 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002178/0.6549, allocations: 0.8069 MB / 0.5911 GB, free: 8.184 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.6551, allocations: 43.98 kB / 0.5911 GB, free: 8.141 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/0.6672, allocations: 10.75 MB / 0.6016 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/0.6672, allocations: 8 kB / 0.6016 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006874/0.6741, allocations: 4.173 MB / 0.6057 GB, free: 8.719 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001469/0.6756, allocations: 490.4 kB / 0.6062 GB, free: 8.219 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002669/0.6759, allocations: 32.19 kB / 0.6062 GB, free: 8.188 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.677, allocations: 95.88 kB / 0.6063 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/0.6773, allocations: 133 kB / 0.6064 GB, free: 7.965 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.6774, allocations: 47.98 kB / 0.6065 GB, free: 7.918 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002064/0.6795, allocations: 1.333 MB / 0.6078 GB, free: 6.562 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6795, allocations: 0 / 0.6078 GB, free: 6.562 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002018/0.6815, allocations: 0.5736 MB / 0.6083 GB, free: 5.992 MB / 446.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.006839/0.6884, allocations: 4.826 MB / 0.613 GB, free: 1.086 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004277/0.6927, allocations: 2.645 MB / 0.6156 GB, free: 14.39 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/0.6927, allocations: 4 kB / 0.6156 GB, free: 14.38 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002704/0.6954, allocations: 1.642 MB / 0.6172 GB, free: 12.71 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/0.6993, allocations: 0.5381 MB / 0.6178 GB, free: 12.17 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03503/0.7343, allocations: 21.49 MB / 0.6387 GB, free: 5.973 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00208/0.7364, allocations: 2.221 MB / 0.6409 GB, free: 3.723 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001461/0.7379, allocations: 465.7 kB / 0.6414 GB, free: 3.266 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/0.7393, allocations: 1.14 MB / 0.6425 GB, free: 2.125 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7393, allocations: 0 / 0.6425 GB, free: 2.125 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1017/0.841, allocations: 56.09 MB / 0.6972 GB, free: 9.949 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.97, allocations: 23.78 kB / 0.6973 GB, free: 9.926 MB / 0.5294 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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