Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.0009714/0.0009715, allocations: 191.1 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 226.5 MB / 244.7 MB, free: 6.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007509/0.0007507, allocations: 89.75 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002251/0.0002251, allocations: 7.938 kB / 356.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2114, allocations: 51.3 MB / 408.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01738/0.2288, allocations: 25.03 MB / 433.2 MB, free: 2.555 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01458/0.2434, allocations: 7.806 MB / 441 MB, free: 10.75 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005164/0.2486, allocations: 195.4 kB / 441.2 MB, free: 10.55 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004554/0.2532, allocations: 1.359 MB / 442.5 MB, free: 9.188 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007668/0.2609, allocations: 2.302 MB / 444.9 MB, free: 6.879 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004126/0.265, allocations: 1.231 MB / 446.1 MB, free: 5.652 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01428/0.2793, allocations: 11.02 MB / 457.1 MB, free: 10.59 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0344/0.3138, allocations: 20.92 MB / 478 MB, free: 5.543 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006565/0.3204, allocations: 3.819 MB / 481.8 MB, free: 1.711 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007703/0.3281, allocations: 4.409 MB / 486.2 MB, free: 13.28 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002527/0.3307, allocations: 0.5977 MB / 486.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004548/0.3352, allocations: 0.9645 MB / 487.8 MB, free: 11.72 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002907/0.3382, allocations: 1.798 MB / 489.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008155/0.3463, allocations: 4.408 MB / 494 MB, free: 5.48 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0184/0.3648, allocations: 17.41 MB / 0.4994 GB, free: 4.031 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3648, allocations: 0 / 0.4994 GB, free: 4.031 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3648, allocations: 0 / 0.4994 GB, free: 4.031 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006224/0.3654, allocations: 4 kB / 0.4994 GB, free: 4.027 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.3108/0.6762, allocations: 9.836 MB / 0.509 GB, free: 78.85 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.6763, allocations: 7.938 kB / 0.5091 GB, free: 78.85 MB / 378.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003595/0.6799, allocations: 1.544 MB / 0.5106 GB, free: 77.87 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0259/0.7058, allocations: 5.63 MB / 0.5161 GB, free: 75.36 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009652/0.7155, allocations: 6.138 MB / 0.5221 GB, free: 70.21 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004161/0.7159, allocations: 0.7061 MB / 0.5227 GB, free: 69.51 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002576/0.7185, allocations: 0.923 MB / 0.5236 GB, free: 68.59 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02306/0.7416, allocations: 15.01 MB / 0.5383 GB, free: 53.53 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002137/0.7418, allocations: 19.75 kB / 0.5383 GB, free: 53.51 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001113/0.7429, allocations: 396.9 kB / 0.5387 GB, free: 53.13 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003244/0.7433, allocations: 0.5117 MB / 0.5392 GB, free: 52.62 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02078/0.764, allocations: 13.66 MB / 0.5525 GB, free: 38.93 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05941/0.8235, allocations: 48.23 MB / 0.5996 GB, free: 5.77 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01821/0.8417, allocations: 28.53 MB / 0.6275 GB, free: 5.527 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004561/0.8463, allocations: 3.063 MB / 0.6305 GB, free: 2.461 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004518/0.8468, allocations: 325.2 kB / 0.6308 GB, free: 2.102 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.834e-05/0.8469, allocations: 77.52 kB / 0.6309 GB, free: 2.016 MB / 426.8 MB Notification: Performance of pre-optimization done (n=384): time 5.159e-06/0.8469, allocations: 0 / 0.6309 GB, free: 2.016 MB / 426.8 MB Notification: Performance of matching and sorting (n=392): time 0.02704/0.8739, allocations: 14.68 MB / 0.6452 GB, free: 3.25 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.874, allocations: 98.36 kB / 0.6453 GB, free: 3.141 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005165/0.8792, allocations: 3.57 MB / 0.6488 GB, free: 15.58 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002251/0.8794, allocations: 89.7 kB / 0.6489 GB, free: 15.48 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002267/0.8817, allocations: 4.049 MB / 0.6528 GB, free: 11.41 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009905/0.8827, allocations: 1.351 MB / 0.6542 GB, free: 10.07 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003095/0.883, allocations: 120 kB / 0.6543 GB, free: 9.949 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0003387/0.8834, allocations: 0.5423 MB / 0.6548 GB, free: 9.398 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003634/0.887, allocations: 2.561 MB / 0.6573 GB, free: 6.832 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004892/0.8919, allocations: 5.063 MB / 0.6622 GB, free: 0.5938 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009046/0.901, allocations: 8.298 MB / 0.6703 GB, free: 7.109 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.316e-05/0.9011, allocations: 24 kB / 0.6704 GB, free: 7.086 MB / 474.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.1711/1.072, allocations: 8.569 MB / 0.6787 GB, free: 153.3 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.872e-05/1.072, allocations: 40.38 kB / 0.6788 GB, free: 153.3 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001015/1.072, allocations: 83.23 kB / 0.6789 GB, free: 153.3 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002093/1.074, allocations: 0.8437 MB / 0.6797 GB, free: 153.3 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004292/1.079, allocations: 1.368 MB / 0.681 GB, free: 153.3 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008096/1.087, allocations: 7.1 MB / 0.6879 GB, free: 150.1 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003492/1.09, allocations: 323.8 kB / 0.6883 GB, free: 150 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005672/1.091, allocations: 310 kB / 0.6886 GB, free: 149.9 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * 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%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004485/1.095, allocations: 3.514 MB / 0.692 GB, free: 148.3 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006806/1.096, allocations: 406.4 kB / 0.6924 GB, free: 148.3 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008089/1.104, allocations: 5.952 MB / 0.6982 GB, free: 146 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.248e-05/1.104, allocations: 42.44 kB / 0.6982 GB, free: 146 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/1.104, allocations: 7.781 kB / 0.6982 GB, free: 146 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.881e-05/1.104, allocations: 22.88 kB / 0.6983 GB, free: 146 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01896/1.123, allocations: 15.23 MB / 0.7131 GB, free: 139.7 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/1.123, allocations: 4 kB / 0.7131 GB, free: 139.7 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002279/1.126, allocations: 0.6941 MB / 0.7138 GB, free: 139.1 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001701/1.127, allocations: 0.6905 MB / 0.7145 GB, free: 138.6 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001913/1.128, allocations: 90.66 kB / 0.7146 GB, free: 138.5 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006661/1.134, allocations: 6.156 MB / 0.7206 GB, free: 132.5 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.134, allocations: 8 kB / 0.7206 GB, free: 132.5 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009759/1.144, allocations: 8.686 MB / 0.7291 GB, free: 123.9 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/1.146, allocations: 0.8887 MB / 0.7299 GB, free: 123.1 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000427/1.146, allocations: 79.92 kB / 0.73 GB, free: 123 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001585/1.148, allocations: 191.9 kB / 0.7302 GB, free: 122.8 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005895/1.148, allocations: 266.7 kB / 0.7304 GB, free: 122.6 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/1.149, allocations: 112 kB / 0.7306 GB, free: 122.4 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.002837/1.151, allocations: 2.384 MB / 0.7329 GB, free: 120.1 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.5e-07/1.151, allocations: 0.5469 kB / 0.7329 GB, free: 120.1 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.004288/1.156, allocations: 1.562 MB / 0.7344 GB, free: 118.5 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (377): * Single equations (assignments): 376 * 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009777/1.165, allocations: 9.434 MB / 0.7436 GB, free: 109 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.008147/1.174, allocations: 6.449 MB / 0.7499 GB, free: 102.5 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 7.124e-06/1.174, allocations: 4 kB / 0.7499 GB, free: 102.5 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003403/1.177, allocations: 2.932 MB / 0.7528 GB, free: 99.56 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005867/1.183, allocations: 0.9031 MB / 0.7537 GB, free: 98.68 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06298/1.246, allocations: 44.6 MB / 0.7972 GB, free: 51.48 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006034/1.252, allocations: 5.797 MB / 0.8029 GB, free: 45.64 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003764/1.256, allocations: 3.245 MB / 0.8061 GB, free: 42.39 MB / 474.8 MB Notification: Performance of SimCode: time 7.81e-07/1.256, allocations: 0 / 0.8061 GB, free: 42.39 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.739/7.995, allocations: 180.4 MB / 0.9823 GB, free: 49.41 MB / 490.8 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches