Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009188/0.0009188, allocations: 175.1 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.173/1.173, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000795/0.0007951, allocations: 89.42 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003045, allocations: 8 kB / 327.6 MB, free: 15.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.1859, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01833/0.2043, allocations: 25.56 MB / 400.8 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.2161, allocations: 7.879 MB / 408.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00323/0.2194, allocations: 171.4 kB / 408.8 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003002/0.2224, allocations: 1.379 MB / 410.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006265/0.2287, allocations: 2.53 MB / 412.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003627/0.2323, allocations: 1.239 MB / 414 MB, free: 9.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01058/0.2429, allocations: 11.56 MB / 425.5 MB, free: 14.22 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02868/0.2716, allocations: 21.02 MB / 446.6 MB, free: 9.062 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005144/0.2768, allocations: 4.01 MB / 450.6 MB, free: 5.039 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006206/0.283, allocations: 4.701 MB / 455.3 MB, free: 328 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001865/0.2849, allocations: 0.6094 MB / 455.9 MB, free: 15.71 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003491/0.2884, allocations: 0.9488 MB / 456.8 MB, free: 14.76 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002412/0.2909, allocations: 1.981 MB / 458.8 MB, free: 12.77 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006499/0.2974, allocations: 4.645 MB / 463.4 MB, free: 8.102 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01563/0.313, allocations: 17.82 MB / 481.3 MB, free: 6.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.3131, allocations: 0 / 481.3 MB, free: 6.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3131, allocations: 0 / 481.3 MB, free: 6.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005002/0.3136, allocations: 4 kB / 481.3 MB, free: 6.227 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02522/0.3388, allocations: 10.24 MB / 491.5 MB, free: 11.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3389, allocations: 12.03 kB / 491.5 MB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004559/0.3434, allocations: 1.643 MB / 493.2 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04195/0.3854, allocations: 8.622 MB / 0.49 GB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2945/0.6799, allocations: 5.898 MB / 0.4958 GB, free: 89.61 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006081/0.6806, allocations: 0.7433 MB / 0.4965 GB, free: 89.28 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00359/0.6842, allocations: 0.9795 MB / 0.4975 GB, free: 88.96 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0328/0.717, allocations: 16.5 MB / 0.5136 GB, free: 82.02 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002413/0.7173, allocations: 16.97 kB / 0.5136 GB, free: 82.02 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001054/0.7183, allocations: 410.7 kB / 0.514 GB, free: 81.71 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004304/0.7188, allocations: 0.6105 MB / 0.5146 GB, free: 81.59 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02573/0.7445, allocations: 15.88 MB / 0.5301 GB, free: 66.14 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07478/0.8193, allocations: 52.3 MB / 0.5812 GB, free: 13 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03052/0.8499, allocations: 52.2 MB / 0.6322 GB, free: 1.871 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005675/0.8556, allocations: 3.445 MB / 0.6355 GB, free: 14.42 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01702/0.8727, allocations: 9.415 MB / 0.6447 GB, free: 4.988 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.891e-05/0.8728, allocations: 60.69 kB / 0.6448 GB, free: 4.918 MB / 442.8 MB Notification: Performance of pre-optimization done (n=270): time 4.628e-06/0.8728, allocations: 0 / 0.6448 GB, free: 4.918 MB / 442.8 MB Notification: Performance of matching and sorting (n=278): time 0.02553/0.8983, allocations: 12.86 MB / 0.6573 GB, free: 7.91 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.8984, allocations: 81.59 kB / 0.6574 GB, free: 7.816 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006963/0.9054, allocations: 4.025 MB / 0.6613 GB, free: 3.766 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002549/0.9057, allocations: 73.7 kB / 0.6614 GB, free: 3.688 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.1933/1.099, allocations: 4.64 MB / 0.6659 GB, free: 159 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001066/1.1, allocations: 0.9903 MB / 0.6669 GB, free: 158.7 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003694/1.1, allocations: 119.1 kB / 0.667 GB, free: 158.7 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0002568/1.101, allocations: 0.5532 MB / 0.6676 GB, free: 158.4 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003019/1.104, allocations: 2.421 MB / 0.6699 GB, free: 158.3 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003805/1.108, allocations: 5.583 MB / 0.6754 GB, free: 153.2 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008347/1.116, allocations: 8.649 MB / 0.6838 GB, free: 146.3 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.459e-05/1.116, allocations: 31.09 kB / 0.6839 GB, free: 146.3 MB / 458.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01234/1.128, allocations: 8.687 MB / 0.6923 GB, free: 142.8 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.729e-05/1.128, allocations: 58.75 kB / 0.6924 GB, free: 142.7 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.535e-05/1.129, allocations: 110.5 kB / 0.6925 GB, free: 142.7 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002162/1.131, allocations: 0.8533 MB / 0.6933 GB, free: 142.6 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003664/1.134, allocations: 1.404 MB / 0.6947 GB, free: 142.4 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007896/1.142, allocations: 6.979 MB / 0.7015 GB, free: 138.5 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003564/1.146, allocations: 352.3 kB / 0.7019 GB, free: 138.4 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003987/1.146, allocations: 349.6 kB / 0.7022 GB, free: 138.4 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004923/1.151, allocations: 3.681 MB / 0.7058 GB, free: 136.6 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006149/1.152, allocations: 404.7 kB / 0.7062 GB, free: 136.4 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006899/1.159, allocations: 5.045 MB / 0.7111 GB, free: 132.2 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/1.159, allocations: 31.94 kB / 0.7111 GB, free: 132.1 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/1.159, allocations: 8 kB / 0.7111 GB, free: 132.1 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.279e-05/1.159, allocations: 16.41 kB / 0.7111 GB, free: 132.1 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/1.174, allocations: 12.18 MB / 0.723 GB, free: 120.8 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/1.174, allocations: 6.812 kB / 0.723 GB, free: 120.8 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001898/1.176, allocations: 0.5226 MB / 0.7236 GB, free: 120.3 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001656/1.178, allocations: 0.6841 MB / 0.7242 GB, free: 119.6 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/1.178, allocations: 63.98 kB / 0.7243 GB, free: 119.5 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006574/1.184, allocations: 6.152 MB / 0.7303 GB, free: 113.2 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/1.184, allocations: 4 kB / 0.7303 GB, free: 113.2 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008384/1.193, allocations: 7.29 MB / 0.7374 GB, free: 105.8 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/1.194, allocations: 0.8237 MB / 0.7382 GB, free: 105 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003848/1.195, allocations: 56 kB / 0.7383 GB, free: 104.9 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/1.196, allocations: 167.9 kB / 0.7384 GB, free: 104.7 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004759/1.197, allocations: 202 kB / 0.7386 GB, free: 104.5 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000165/1.197, allocations: 99.91 kB / 0.7387 GB, free: 104.4 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.003171/1.2, allocations: 2.641 MB / 0.7413 GB, free: 101.8 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.01e-07/1.2, allocations: 0 / 0.7413 GB, free: 101.8 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.00455/1.205, allocations: 1.551 MB / 0.7428 GB, free: 100.3 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (263): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008577/1.213, allocations: 7.972 MB / 0.7506 GB, free: 92.14 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.007795/1.221, allocations: 6.077 MB / 0.7565 GB, free: 86.04 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/1.221, allocations: 3.828 kB / 0.7565 GB, free: 86.04 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002922/1.224, allocations: 2.462 MB / 0.7589 GB, free: 83.57 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005187/1.229, allocations: 0.8858 MB / 0.7598 GB, free: 82.69 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06358/1.293, allocations: 45.98 MB / 0.8047 GB, free: 33.58 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005094/1.298, allocations: 6.02 MB / 0.8106 GB, free: 27.53 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003788/1.302, allocations: 3.452 MB / 0.814 GB, free: 24.07 MB / 458.8 MB Notification: Performance of SimCode: time 1.092e-06/1.302, allocations: 0 / 0.814 GB, free: 24.07 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.211/8.513, allocations: 187 MB / 0.9966 GB, free: 130.1 MB / 474.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches