Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_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/ModelicaServices trunk/package.mo): time 0.00111/0.00111, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001214/0.001214, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001316, allocations: 60.44 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09743/0.09877, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2087/0.3075, allocations: 28.61 MB / 386.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01858/0.3262, allocations: 8.485 MB / 394.7 MB, free: 20 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009015/0.3352, allocations: 213.2 kB / 394.9 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01902/0.3543, allocations: 8.159 MB / 403.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008426/0.3627, allocations: 2.785 MB / 405.9 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004542/0.3673, allocations: 1.891 MB / 407.7 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009871/0.3772, allocations: 9.946 MB / 417.7 MB, free: 268 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02215/0.3993, allocations: 21.43 MB / 439.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005842/0.4052, allocations: 5.338 MB / 444.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007997/0.4132, allocations: 6.101 MB / 450.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003467/0.4167, allocations: 1.539 MB / 452.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005221/0.4219, allocations: 1.937 MB / 454 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004538/0.4265, allocations: 2.985 MB / 457 MB, free: 8.742 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009336/0.4358, allocations: 5.852 MB / 462.9 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02114/0.457, allocations: 20.53 MB / 483.4 MB, free: 14.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.272e-05/0.4571, allocations: 3.984 kB / 483.4 MB, free: 14.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4571, allocations: 0 / 483.4 MB, free: 14.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007106/0.4578, allocations: 0 / 483.4 MB, free: 14.27 MB / 398.1 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.04842/0.5062, allocations: 11.91 MB / 495.3 MB, free: 2.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.5063, allocations: 8.031 kB / 495.3 MB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005366/0.5117, allocations: 1.54 MB / 496.9 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03141/0.5431, allocations: 5.612 MB / 0.4907 GB, free: 11.08 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01312/0.5563, allocations: 6.133 MB / 0.4967 GB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007145/0.557, allocations: 0.7104 MB / 0.4974 GB, free: 4.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003437/0.5605, allocations: 0.9333 MB / 0.4983 GB, free: 3.246 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03607/0.5966, allocations: 15.08 MB / 0.513 GB, free: 4.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004236/0.597, allocations: 19.89 kB / 0.513 GB, free: 4.07 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002559/0.5996, allocations: 392 kB / 0.5134 GB, free: 3.688 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005122/0.6001, allocations: 0.5117 MB / 0.5139 GB, free: 3.172 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02551/0.6256, allocations: 13.75 MB / 0.5273 GB, free: 5.398 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3754/1.001, allocations: 48.11 MB / 0.5743 GB, free: 103.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01536/1.016, allocations: 28.59 MB / 0.6022 GB, free: 74.63 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004231/1.021, allocations: 3.084 MB / 0.6052 GB, free: 73.06 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004047/1.021, allocations: 326.1 kB / 0.6056 GB, free: 72.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.079e-05/1.021, allocations: 72.89 kB / 0.6056 GB, free: 72.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 5.6e-06/1.021, allocations: 0 / 0.6056 GB, free: 72.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02622/1.047, allocations: 14.78 MB / 0.6201 GB, free: 60.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/1.048, allocations: 94.47 kB / 0.6202 GB, free: 60.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005076/1.053, allocations: 3.595 MB / 0.6237 GB, free: 56.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002929/1.053, allocations: 93.7 kB / 0.6237 GB, free: 56.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001584/1.055, allocations: 4.047 MB / 0.6277 GB, free: 52.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000828/1.055, allocations: 1.338 MB / 0.629 GB, free: 51.22 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00167/1.057, allocations: 1.167 MB / 0.6301 GB, free: 50.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.244e-05/1.057, allocations: 309.1 kB / 0.6304 GB, free: 49.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003382/1.06, allocations: 2.588 MB / 0.633 GB, free: 47.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004429/1.065, allocations: 5.088 MB / 0.6379 GB, free: 40.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008346/1.073, allocations: 8.337 MB / 0.6461 GB, free: 31.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.381e-05/1.073, allocations: 24 kB / 0.6461 GB, free: 31.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01413/1.088, allocations: 8.635 MB / 0.6545 GB, free: 22.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.5e-05/1.088, allocations: 43.94 kB / 0.6546 GB, free: 22.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001133/1.088, allocations: 88.09 kB / 0.6547 GB, free: 22.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/1.09, allocations: 0.8537 MB / 0.6555 GB, free: 21.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00448/1.095, allocations: 1.365 MB / 0.6568 GB, free: 20.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009648/1.104, allocations: 7.689 MB / 0.6643 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004389/1.109, allocations: 331.3 kB / 0.6647 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008992/1.11, allocations: 304 kB / 0.6649 GB, free: 11.86 MB / 446.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005861/1.115, allocations: 3.516 MB / 0.6684 GB, free: 8.328 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001085/1.117, allocations: 411 kB / 0.6688 GB, free: 7.922 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009398/1.126, allocations: 5.992 MB / 0.6746 GB, free: 1.895 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/1.126, allocations: 40 kB / 0.6747 GB, free: 1.855 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/1.126, allocations: 8 kB / 0.6747 GB, free: 1.848 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.509e-05/1.126, allocations: 27.8 kB / 0.6747 GB, free: 1.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03022/1.156, allocations: 15.28 MB / 0.6896 GB, free: 2.359 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.229e-05/1.156, allocations: 4 kB / 0.6896 GB, free: 2.355 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002968/1.159, allocations: 0.6865 MB / 0.6903 GB, free: 1.668 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002276/1.162, allocations: 0.7255 MB / 0.691 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004144/1.162, allocations: 83.98 kB / 0.6911 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009497/1.172, allocations: 6.709 MB / 0.6976 GB, free: 10.01 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.934e-06/1.172, allocations: 7.938 kB / 0.6976 GB, free: 10 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0146/1.186, allocations: 8.751 MB / 0.7062 GB, free: 1.133 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002112/1.188, allocations: 0.8863 MB / 0.707 GB, free: 228 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009192/1.189, allocations: 79.88 kB / 0.7071 GB, free: 148 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1604/1.35, allocations: 188.9 kB / 0.7073 GB, free: 151.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001062/1.351, allocations: 260.2 kB / 0.7076 GB, free: 151.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003/1.351, allocations: 115.5 kB / 0.7077 GB, free: 151.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004753/1.356, allocations: 2.42 MB / 0.71 GB, free: 151.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.356, allocations: 0 / 0.71 GB, free: 151.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006339/1.362, allocations: 1.554 MB / 0.7115 GB, free: 151.5 MB / 478.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01392/1.376, allocations: 9.489 MB / 0.7208 GB, free: 148.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02583/1.402, allocations: 12.86 MB / 0.7334 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/1.402, allocations: 0 / 0.7334 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00407/1.406, allocations: 2.95 MB / 0.7362 GB, free: 144.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004345/1.411, allocations: 0.9683 MB / 0.7372 GB, free: 144.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07133/1.482, allocations: 61.07 MB / 0.7968 GB, free: 82.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007318/1.489, allocations: 5.979 MB / 0.8027 GB, free: 76.57 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004984/1.494, allocations: 1.885 MB / 0.8045 GB, free: 74.68 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004254/1.499, allocations: 3.225 MB / 0.8077 GB, free: 71.46 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/1.499, allocations: 0 / 0.8077 GB, free: 71.46 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3407/1.839, allocations: 121.4 MB / 0.9262 GB, free: 140.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.06/14.9, allocations: 7.469 kB / 0.9262 GB, free: 140.2 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches