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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001475/0.001474, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00184/0.001841, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 63.89 kB / 358.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2523, allocations: 50.53 MB / 409.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0281/0.2804, allocations: 28.63 MB / 437.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01623/0.2967, allocations: 8.485 MB / 446.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005099/0.3018, allocations: 211.4 kB / 446.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01814/0.32, allocations: 8.165 MB / 454.8 MB, free: 3.898 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00862/0.3286, allocations: 2.778 MB / 457.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005098/0.3337, allocations: 1.884 MB / 459.4 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01163/0.3454, allocations: 10.03 MB / 469.4 MB, free: 5.164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02773/0.3731, allocations: 21.35 MB / 490.8 MB, free: 15.67 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007327/0.3805, allocations: 5.369 MB / 496.2 MB, free: 10.29 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009154/0.3897, allocations: 6.074 MB / 0.4905 GB, free: 4.191 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003717/0.3934, allocations: 1.543 MB / 0.492 GB, free: 2.648 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005492/0.3989, allocations: 1.925 MB / 0.4939 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004443/0.4034, allocations: 2.981 MB / 0.4968 GB, free: 13.73 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009754/0.4132, allocations: 5.856 MB / 0.5025 GB, free: 7.855 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02269/0.4359, allocations: 20.64 MB / 0.5226 GB, free: 3.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.436, allocations: 0 / 0.5226 GB, free: 3.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.436, allocations: 0 / 0.5226 GB, free: 3.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004622/0.4364, allocations: 0 / 0.5226 GB, free: 3.16 MB / 446.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.03301/0.4695, allocations: 11.87 MB / 0.5342 GB, free: 7.184 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.4695, allocations: 8.031 kB / 0.5342 GB, free: 7.176 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03147/0.501, allocations: 5.639 MB / 0.5397 GB, free: 1.52 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4198/0.9208, allocations: 6.295 MB / 0.5459 GB, free: 109.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000422/0.9213, allocations: 0.703 MB / 0.5466 GB, free: 108.9 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00267/0.924, allocations: 0.9262 MB / 0.5475 GB, free: 108.6 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03031/0.9543, allocations: 15.06 MB / 0.5622 GB, free: 102.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003069/0.9546, allocations: 19.38 kB / 0.5622 GB, free: 102.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002551/0.9572, allocations: 390 kB / 0.5626 GB, free: 101.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003692/0.9576, allocations: 0.517 MB / 0.5631 GB, free: 101.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02352/0.9811, allocations: 13.75 MB / 0.5765 GB, free: 88.36 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0609/1.042, allocations: 47.51 MB / 0.6229 GB, free: 39.97 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0144/1.056, allocations: 28.59 MB / 0.6508 GB, free: 7.695 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003989/1.061, allocations: 3.089 MB / 0.6539 GB, free: 4.602 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003454/1.061, allocations: 325.6 kB / 0.6542 GB, free: 4.238 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/1.061, allocations: 73.58 kB / 0.6542 GB, free: 4.156 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.59e-06/1.061, allocations: 0 / 0.6542 GB, free: 4.156 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02699/1.088, allocations: 14.78 MB / 0.6687 GB, free: 5.297 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/1.088, allocations: 90.48 kB / 0.6688 GB, free: 5.195 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004893/1.093, allocations: 3.603 MB / 0.6723 GB, free: 1.598 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002678/1.093, allocations: 93.7 kB / 0.6724 GB, free: 1.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002372/1.096, allocations: 4.032 MB / 0.6763 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001211/1.097, allocations: 1.349 MB / 0.6776 GB, free: 12.11 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001604/1.098, allocations: 1.16 MB / 0.6787 GB, free: 10.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.852e-05/1.099, allocations: 309.1 kB / 0.679 GB, free: 10.63 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003546/1.102, allocations: 2.592 MB / 0.6816 GB, free: 8.031 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005138/1.107, allocations: 5.084 MB / 0.6865 GB, free: 1.773 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009712/1.117, allocations: 8.34 MB / 0.6947 GB, free: 8.246 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-05/1.117, allocations: 24 kB / 0.6947 GB, free: 8.223 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01395/1.131, allocations: 8.636 MB / 0.7031 GB, free: 15.55 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.321e-05/1.131, allocations: 40 kB / 0.7032 GB, free: 15.52 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001064/1.131, allocations: 96.05 kB / 0.7033 GB, free: 15.42 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002303/1.133, allocations: 0.8492 MB / 0.7041 GB, free: 14.57 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004798/1.138, allocations: 1.369 MB / 0.7054 GB, free: 13.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/1.149, allocations: 7.666 MB / 0.7129 GB, free: 5.391 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004431/1.154, allocations: 331.3 kB / 0.7132 GB, free: 5.066 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009452/1.155, allocations: 308 kB / 0.7135 GB, free: 4.766 MB / 0.5138 GB 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.005988/1.161, allocations: 3.505 MB / 0.717 GB, free: 1.246 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009642/1.162, allocations: 411 kB / 0.7173 GB, free: 0.8398 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009659/1.171, allocations: 5.988 MB / 0.7232 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.661e-05/1.171, allocations: 40 kB / 0.7232 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/1.171, allocations: 12 kB / 0.7232 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.682e-05/1.171, allocations: 19.92 kB / 0.7233 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02652/1.198, allocations: 14.95 MB / 0.7379 GB, free: 11.71 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/1.198, allocations: 4 kB / 0.7379 GB, free: 11.7 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002671/1.201, allocations: 0.6944 MB / 0.7385 GB, free: 11.01 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/1.203, allocations: 0.7131 MB / 0.7392 GB, free: 10.29 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002919/1.203, allocations: 87.92 kB / 0.7393 GB, free: 10.21 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008852/1.212, allocations: 6.698 MB / 0.7459 GB, free: 3.375 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/1.212, allocations: 11.94 kB / 0.7459 GB, free: 3.363 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2696/1.481, allocations: 8.762 MB / 0.7544 GB, free: 184.1 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002593/1.484, allocations: 0.8772 MB / 0.7553 GB, free: 183.8 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006023/1.485, allocations: 89.95 kB / 0.7554 GB, free: 183.8 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001849/1.487, allocations: 177.7 kB / 0.7555 GB, free: 183.7 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004696/1.487, allocations: 267 kB / 0.7558 GB, free: 183.7 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002046/1.487, allocations: 114.6 kB / 0.7559 GB, free: 183.6 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.003213/1.49, allocations: 2.416 MB / 0.7583 GB, free: 182.8 MB / 0.5451 GB Notification: Performance of sort global known variables: time 1.8e-07/1.49, allocations: 1.719 kB / 0.7583 GB, free: 182.8 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.005756/1.496, allocations: 1.549 MB / 0.7598 GB, free: 182.6 MB / 0.5451 GB 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.0006537/1.497, allocations: 270.9 kB / 0.76 GB, free: 182.4 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.009373/1.506, allocations: 6.533 MB / 0.7664 GB, free: 180 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 9.407e-06/1.506, allocations: 0 / 0.7664 GB, free: 180 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.004117/1.51, allocations: 2.949 MB / 0.7693 GB, free: 178.8 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005175/1.516, allocations: 0.9573 MB / 0.7702 GB, free: 178.5 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02601/1.542, allocations: 15.73 MB / 0.7856 GB, free: 171.1 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005234/1.547, allocations: 5.966 MB / 0.7914 GB, free: 166.5 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.004413/1.551, allocations: 1.883 MB / 0.7933 GB, free: 165.3 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000994/1.552, allocations: 346 kB / 0.7936 GB, free: 164.9 MB / 0.5451 GB Notification: Performance of SimCode: time 8.51e-07/1.552, allocations: 0 / 0.7936 GB, free: 164.9 MB / 0.5451 GB Notification: Performance of Templates: time 0.09048/1.643, allocations: 60.23 MB / 0.8524 GB, free: 106.9 MB / 0.5451 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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/jenkins/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