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.001103/0.001103, allocations: 112.1 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00117/0.00117, allocations: 206.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2061, allocations: 50.55 MB / 410 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02809/0.2343, allocations: 28.62 MB / 438.6 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01437/0.2487, allocations: 8.485 MB / 447.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002675/0.2514, allocations: 211.4 kB / 447.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01648/0.2678, allocations: 8.236 MB / 455.5 MB, free: 3.871 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006977/0.2748, allocations: 2.828 MB / 458.3 MB, free: 1.031 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00405/0.2789, allocations: 1.88 MB / 460.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01014/0.289, allocations: 10.03 MB / 470.3 MB, free: 5.086 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02651/0.3156, allocations: 21.35 MB / 491.6 MB, free: 15.59 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006253/0.3219, allocations: 5.377 MB / 497 MB, free: 10.2 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00715/0.329, allocations: 6.074 MB / 0.4913 GB, free: 4.109 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001939/0.331, allocations: 1.543 MB / 0.4928 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002856/0.3338, allocations: 1.921 MB / 0.4947 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002172/0.336, allocations: 2.981 MB / 0.4976 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005276/0.3413, allocations: 5.848 MB / 0.5033 GB, free: 7.785 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01696/0.3583, allocations: 20.65 MB / 0.5234 GB, free: 3.082 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3583, allocations: 0 / 0.5234 GB, free: 3.082 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3583, allocations: 0 / 0.5234 GB, free: 3.082 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000266/0.3586, allocations: 4 kB / 0.5234 GB, free: 3.078 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.02773/0.3863, allocations: 11.86 MB / 0.535 GB, free: 7.117 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.3864, allocations: 15.97 kB / 0.535 GB, free: 7.102 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03097/0.4174, allocations: 5.635 MB / 0.5405 GB, free: 1.449 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3377/0.7551, allocations: 6.293 MB / 0.5467 GB, free: 109.3 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003838/0.7555, allocations: 0.7038 MB / 0.5474 GB, free: 109 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002371/0.7579, allocations: 0.9297 MB / 0.5483 GB, free: 108.7 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02282/0.7807, allocations: 15.07 MB / 0.563 GB, free: 102.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001858/0.7809, allocations: 11.75 kB / 0.563 GB, free: 102.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000902/0.7819, allocations: 393.6 kB / 0.5634 GB, free: 101.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003207/0.7822, allocations: 0.5148 MB / 0.5639 GB, free: 101.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0195/0.8017, allocations: 13.75 MB / 0.5773 GB, free: 88.35 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05617/0.8579, allocations: 47.51 MB / 0.6237 GB, free: 39.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01446/0.8724, allocations: 28.6 MB / 0.6516 GB, free: 7.676 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003557/0.876, allocations: 3.081 MB / 0.6547 GB, free: 4.586 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003735/0.8764, allocations: 325.3 kB / 0.655 GB, free: 4.227 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.915e-05/0.8764, allocations: 73.58 kB / 0.655 GB, free: 4.145 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 6.422e-06/0.8764, allocations: 0 / 0.655 GB, free: 4.145 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02695/0.9034, allocations: 14.78 MB / 0.6695 GB, free: 5.285 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.9035, allocations: 90.48 kB / 0.6696 GB, free: 5.184 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005374/0.9088, allocations: 3.61 MB / 0.6731 GB, free: 1.578 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002191/0.9091, allocations: 85.7 kB / 0.6732 GB, free: 1.488 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002417/0.9115, allocations: 4.046 MB / 0.6771 GB, free: 13.42 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001056/0.9126, allocations: 1.338 MB / 0.6784 GB, free: 12.09 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001672/0.9143, allocations: 1.164 MB / 0.6796 GB, free: 10.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.613e-05/0.9144, allocations: 301.1 kB / 0.6798 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0038/0.9182, allocations: 2.592 MB / 0.6824 GB, free: 8.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00545/0.9236, allocations: 5.084 MB / 0.6873 GB, free: 1.762 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009445/0.9331, allocations: 8.344 MB / 0.6955 GB, free: 8.23 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.943e-05/0.9331, allocations: 27.94 kB / 0.6955 GB, free: 8.203 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01413/0.9473, allocations: 8.631 MB / 0.7039 GB, free: 15.54 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.275e-05/0.9474, allocations: 40 kB / 0.704 GB, free: 15.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/0.9475, allocations: 84 kB / 0.7041 GB, free: 15.42 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002398/0.9499, allocations: 0.8478 MB / 0.7049 GB, free: 14.57 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004715/0.9546, allocations: 1.369 MB / 0.7062 GB, free: 13.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/0.9656, allocations: 7.676 MB / 0.7137 GB, free: 5.379 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003966/0.9696, allocations: 331.2 kB / 0.714 GB, free: 5.055 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008571/0.9705, allocations: 308 kB / 0.7143 GB, free: 4.754 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.005697/0.9762, allocations: 3.513 MB / 0.7178 GB, free: 1.227 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001069/0.9773, allocations: 407 kB / 0.7181 GB, free: 0.8242 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/0.9882, allocations: 5.984 MB / 0.724 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.312e-05/0.9883, allocations: 19.92 kB / 0.724 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.9883, allocations: 0 / 0.724 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001889/0.9902, allocations: 0.8902 MB / 0.7249 GB, free: 9.867 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007921/0.991, allocations: 64 kB / 0.7249 GB, free: 9.805 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/0.9931, allocations: 191.7 kB / 0.7251 GB, free: 9.617 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005357/0.9936, allocations: 274.9 kB / 0.7254 GB, free: 9.348 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01019/1.004, allocations: 5.601 MB / 0.7309 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01059/1.014, allocations: 7.413 MB / 0.7381 GB, free: 12.34 MB / 0.5451 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002928/1.017, allocations: 2.259 MB / 0.7403 GB, free: 10.07 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.004023/1.021, allocations: 2.412 MB / 0.7427 GB, free: 7.676 MB / 0.5451 GB Notification: Performance of Backend: time 1.663e-06/1.021, allocations: 8 kB / 0.7427 GB, free: 7.668 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.009404/1.031, allocations: 4.924 MB / 0.7475 GB, free: 2.773 MB / 0.5451 GB Notification: Performance of SimCode: time 0.2/1.231, allocations: 14.98 MB / 0.7621 GB, free: 192.8 MB / 0.5451 GB Notification: Performance of Templates: time 0.09391/1.325, allocations: 72.22 MB / 0.8326 GB, free: 131.8 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