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.001143/0.001143, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 206.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 60.09 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.254, allocations: 50.55 MB / 410 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02989/0.2839, allocations: 28.61 MB / 438.6 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01889/0.3029, allocations: 8.481 MB / 447.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006344/0.3093, allocations: 219.3 kB / 447.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01875/0.3281, allocations: 8.161 MB / 455.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009849/0.3379, allocations: 2.785 MB / 458.2 MB, free: 1.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006022/0.344, allocations: 1.881 MB / 460.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01388/0.3579, allocations: 10.03 MB / 470.1 MB, free: 5.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03657/0.3945, allocations: 21.35 MB / 491.5 MB, free: 15.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009083/0.4036, allocations: 5.369 MB / 496.9 MB, free: 10.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01067/0.4143, allocations: 6.074 MB / 0.4911 GB, free: 4.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00444/0.4188, allocations: 1.543 MB / 0.4926 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006152/0.4249, allocations: 1.921 MB / 0.4945 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005271/0.4302, allocations: 2.977 MB / 0.4974 GB, free: 13.8 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01065/0.4409, allocations: 5.852 MB / 0.5031 GB, free: 7.922 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02444/0.4654, allocations: 20.64 MB / 0.5233 GB, free: 3.227 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.4655, allocations: 0 / 0.5233 GB, free: 3.227 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4655, allocations: 0 / 0.5233 GB, free: 3.227 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005851/0.4661, allocations: 8 kB / 0.5233 GB, free: 3.219 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.03783/0.5039, allocations: 11.87 MB / 0.5349 GB, free: 7.25 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.042e-05/0.504, allocations: 16.03 kB / 0.5349 GB, free: 7.234 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03181/0.5358, allocations: 5.627 MB / 0.5404 GB, free: 1.59 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4705/1.006, allocations: 6.299 MB / 0.5466 GB, free: 109.3 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005645/1.007, allocations: 0.7058 MB / 0.5473 GB, free: 109 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003684/1.011, allocations: 0.9218 MB / 0.5482 GB, free: 108.7 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0356/1.046, allocations: 15.07 MB / 0.5629 GB, free: 102.3 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004869/1.047, allocations: 15.72 kB / 0.5629 GB, free: 102.3 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003133/1.05, allocations: 394 kB / 0.5633 GB, free: 102 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004956/1.05, allocations: 0.515 MB / 0.5638 GB, free: 101.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02746/1.078, allocations: 13.75 MB / 0.5772 GB, free: 88.48 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07617/1.154, allocations: 47.5 MB / 0.6236 GB, free: 40.09 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01732/1.171, allocations: 28.61 MB / 0.6515 GB, free: 7.789 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004524/1.176, allocations: 3.077 MB / 0.6545 GB, free: 4.703 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005352/1.177, allocations: 321.4 kB / 0.6548 GB, free: 4.348 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.726e-05/1.177, allocations: 77.58 kB / 0.6549 GB, free: 4.262 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.891e-06/1.177, allocations: 0 / 0.6549 GB, free: 4.262 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03481/1.212, allocations: 14.77 MB / 0.6693 GB, free: 5.41 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/1.212, allocations: 94.48 kB / 0.6694 GB, free: 5.305 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006528/1.218, allocations: 3.606 MB / 0.6729 GB, free: 1.703 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006589/1.219, allocations: 85.7 kB / 0.673 GB, free: 1.613 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002968/1.222, allocations: 4.042 MB / 0.677 GB, free: 13.55 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001723/1.224, allocations: 1.35 MB / 0.6783 GB, free: 12.21 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001857/1.225, allocations: 1.156 MB / 0.6794 GB, free: 11.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/1.226, allocations: 301.1 kB / 0.6797 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004289/1.23, allocations: 2.592 MB / 0.6822 GB, free: 8.148 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006011/1.236, allocations: 5.088 MB / 0.6872 GB, free: 1.887 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/1.247, allocations: 8.344 MB / 0.6954 GB, free: 8.355 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.789e-05/1.247, allocations: 28 kB / 0.6954 GB, free: 8.328 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01806/1.266, allocations: 8.635 MB / 0.7038 GB, free: 15.66 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001238/1.266, allocations: 40 kB / 0.7039 GB, free: 15.62 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001806/1.266, allocations: 84 kB / 0.7039 GB, free: 15.54 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00264/1.269, allocations: 0.8465 MB / 0.7048 GB, free: 14.69 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005298/1.274, allocations: 1.373 MB / 0.7061 GB, free: 13.32 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/1.286, allocations: 7.673 MB / 0.7136 GB, free: 5.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004427/1.29, allocations: 331.2 kB / 0.7139 GB, free: 5.176 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001192/1.292, allocations: 304 kB / 0.7142 GB, free: 4.879 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.007323/1.299, allocations: 3.517 MB / 0.7176 GB, free: 1.348 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001467/1.3, allocations: 411 kB / 0.718 GB, free: 0.9414 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/1.313, allocations: 5.98 MB / 0.7239 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-05/1.313, allocations: 40 kB / 0.7239 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.922e-05/1.313, allocations: 12 kB / 0.7239 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.943e-05/1.313, allocations: 19.92 kB / 0.7239 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03055/1.343, allocations: 14.95 MB / 0.7385 GB, free: 11.84 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.428e-05/1.343, allocations: 4 kB / 0.7385 GB, free: 11.84 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003063/1.347, allocations: 0.6943 MB / 0.7392 GB, free: 11.14 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002288/1.349, allocations: 0.7137 MB / 0.7399 GB, free: 10.43 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006205/1.349, allocations: 91.98 kB / 0.74 GB, free: 10.34 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009898/1.359, allocations: 6.702 MB / 0.7465 GB, free: 3.496 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/1.359, allocations: 4 kB / 0.7465 GB, free: 3.492 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2472/1.607, allocations: 8.756 MB / 0.7551 GB, free: 184.1 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001871/1.609, allocations: 0.8835 MB / 0.756 GB, free: 183.8 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006138/1.609, allocations: 81.45 kB / 0.756 GB, free: 183.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001829/1.611, allocations: 184.9 kB / 0.7562 GB, free: 183.7 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004504/1.611, allocations: 263.4 kB / 0.7565 GB, free: 183.7 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001981/1.612, allocations: 110.7 kB / 0.7566 GB, free: 183.6 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.003076/1.615, allocations: 2.421 MB / 0.7589 GB, free: 182.7 MB / 0.5451 GB Notification: Performance of sort global known variables: time 3.31e-07/1.615, allocations: 0 / 0.7589 GB, free: 182.7 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.005064/1.62, allocations: 1.547 MB / 0.7604 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.0006704/1.621, allocations: 269.8 kB / 0.7607 GB, free: 182.4 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.008773/1.629, allocations: 6.529 MB / 0.7671 GB, free: 180 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/1.629, allocations: 3.875 kB / 0.7671 GB, free: 180 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.004121/1.634, allocations: 2.948 MB / 0.77 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.00525/1.639, allocations: 0.9706 MB / 0.7709 GB, free: 178.4 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02396/1.663, allocations: 15.46 MB / 0.786 GB, free: 171.5 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005416/1.668, allocations: 5.796 MB / 0.7917 GB, free: 167 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/1.67, allocations: 388.9 kB / 0.792 GB, free: 166.6 MB / 0.5451 GB Notification: Performance of SimCode: time 6.71e-07/1.67, allocations: 0 / 0.792 GB, free: 166.6 MB / 0.5451 GB Notification: Performance of Templates: time 0.1403/1.81, allocations: 151.6 MB / 0.9401 GB, free: 17.73 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/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