Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.1.0-beta.om_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=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00159/0.00159, allocations: 108.7 kB / 18.78 MB, free: 3.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001914/0.001914, allocations: 211.9 kB / 19.79 MB, free: 2.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.469/1.469, allocations: 230.4 MB / 251.1 MB, free: 8.473 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 67.83 kB / 369 MB, free: 6.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2641, allocations: 53.32 MB / 422.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03496/0.299, allocations: 28.74 MB / 451 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01867/0.3177, allocations: 8.509 MB / 459.6 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005725/0.3234, allocations: 211.4 kB / 459.8 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02001/0.3434, allocations: 8.268 MB / 468 MB, free: 9.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01039/0.3538, allocations: 2.858 MB / 470.9 MB, free: 7.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006155/0.36, allocations: 1.893 MB / 472.8 MB, free: 5.176 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01512/0.3751, allocations: 10.04 MB / 482.8 MB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02733/0.4024, allocations: 16.33 MB / 499.1 MB, free: 10.63 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008477/0.4109, allocations: 5.392 MB / 0.4927 GB, free: 5.227 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01092/0.4218, allocations: 6.132 MB / 0.4987 GB, free: 15.07 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004054/0.4259, allocations: 1.539 MB / 0.5002 GB, free: 13.54 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005752/0.4316, allocations: 1.925 MB / 0.5021 GB, free: 11.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00456/0.4362, allocations: 2.996 MB / 0.505 GB, free: 8.605 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01016/0.4464, allocations: 5.844 MB / 0.5107 GB, free: 2.738 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02717/0.4735, allocations: 20.69 MB / 0.5309 GB, free: 13.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4735, allocations: 0 / 0.5309 GB, free: 13.98 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4735, allocations: 0 / 0.5309 GB, free: 13.98 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004643/0.474, allocations: 4 kB / 0.5309 GB, free: 13.98 MB / 462.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.03614/0.5101, allocations: 12.09 MB / 0.5427 GB, free: 1.773 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.5102, allocations: 16.03 kB / 0.5428 GB, free: 1.758 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4363/0.9465, allocations: 5.592 MB / 0.5482 GB, free: 104 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/0.9582, allocations: 6.335 MB / 0.5544 GB, free: 101.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005262/0.9587, allocations: 0.7009 MB / 0.5551 GB, free: 100.9 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003726/0.9624, allocations: 0.9216 MB / 0.556 GB, free: 100.6 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03484/0.9973, allocations: 15.1 MB / 0.5707 GB, free: 89.83 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005541/0.9978, allocations: 23.89 kB / 0.5708 GB, free: 89.8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003135/1.001, allocations: 391.6 kB / 0.5711 GB, free: 89.43 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004695/1.001, allocations: 0.5116 MB / 0.5716 GB, free: 88.91 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02588/1.027, allocations: 13.78 MB / 0.5851 GB, free: 75.11 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0691/1.096, allocations: 47.65 MB / 0.6316 GB, free: 26.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01613/1.113, allocations: 28.24 MB / 0.6592 GB, free: 10.96 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005352/1.118, allocations: 2.802 MB / 0.6619 GB, free: 8.156 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005881/1.118, allocations: 348.8 kB / 0.6623 GB, free: 7.781 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.042e-05/1.119, allocations: 77.56 kB / 0.6623 GB, free: 7.695 MB / 478.1 MB Notification: Performance of pre-optimization done (n=384): time 6.832e-06/1.119, allocations: 0 / 0.6623 GB, free: 7.695 MB / 478.1 MB Notification: Performance of matching and sorting (n=392): time 0.03359/1.152, allocations: 14.9 MB / 0.6769 GB, free: 8.891 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.325e-05/1.152, allocations: 94.48 kB / 0.677 GB, free: 8.785 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007333/1.16, allocations: 3.599 MB / 0.6805 GB, free: 5.191 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000727/1.16, allocations: 93.7 kB / 0.6806 GB, free: 5.094 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003559/1.164, allocations: 4.183 MB / 0.6847 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001985/1.166, allocations: 1.41 MB / 0.686 GB, free: 15.47 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003159/1.169, allocations: 1.176 MB / 0.6872 GB, free: 14.29 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001499/1.169, allocations: 312.9 kB / 0.6875 GB, free: 13.98 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004878/1.174, allocations: 2.596 MB / 0.69 GB, free: 11.38 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007445/1.181, allocations: 5.081 MB / 0.695 GB, free: 5.125 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01343/1.195, allocations: 8.36 MB / 0.7031 GB, free: 11.58 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.856e-05/1.195, allocations: 24 kB / 0.7032 GB, free: 11.55 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0211/1.216, allocations: 8.649 MB / 0.7116 GB, free: 2.875 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001345/1.216, allocations: 43.94 kB / 0.7117 GB, free: 2.832 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001907/1.216, allocations: 80.88 kB / 0.7117 GB, free: 2.754 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002792/1.219, allocations: 0.8537 MB / 0.7126 GB, free: 1.898 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005936/1.225, allocations: 1.373 MB / 0.7139 GB, free: 0.5234 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0136/1.239, allocations: 7.681 MB / 0.7214 GB, free: 8.688 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004345/1.243, allocations: 331.4 kB / 0.7217 GB, free: 8.363 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001125/1.244, allocations: 312 kB / 0.722 GB, free: 8.059 MB / 0.5294 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.007037/1.251, allocations: 3.505 MB / 0.7254 GB, free: 4.539 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001427/1.253, allocations: 441.2 kB / 0.7259 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0139/1.267, allocations: 5.949 MB / 0.7317 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.213e-05/1.267, allocations: 40 kB / 0.7317 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.694e-05/1.267, allocations: 8 kB / 0.7317 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.017e-05/1.267, allocations: 23.86 kB / 0.7317 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0342/1.301, allocations: 14.96 MB / 0.7464 GB, free: 14.93 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.989e-05/1.301, allocations: 4 kB / 0.7464 GB, free: 14.92 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00329/1.304, allocations: 0.6982 MB / 0.747 GB, free: 14.22 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002316/1.307, allocations: 0.7134 MB / 0.7477 GB, free: 13.51 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005709/1.307, allocations: 91.97 kB / 0.7478 GB, free: 13.42 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/1.318, allocations: 6.719 MB / 0.7544 GB, free: 6.562 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.266e-06/1.318, allocations: 7.938 kB / 0.7544 GB, free: 6.555 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2494/1.567, allocations: 8.774 MB / 0.763 GB, free: 192 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/1.57, allocations: 0.9075 MB / 0.7638 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006068/1.57, allocations: 74.25 kB / 0.7639 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001848/1.572, allocations: 178.5 kB / 0.7641 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005342/1.573, allocations: 269.1 kB / 0.7643 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002173/1.573, allocations: 121.9 kB / 0.7645 GB, free: 191.9 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.003238/1.576, allocations: 2.417 MB / 0.7668 GB, free: 191 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.1e-07/1.576, allocations: 3.875 kB / 0.7668 GB, free: 191 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.005053/1.581, allocations: 1.549 MB / 0.7683 GB, free: 190.9 MB / 0.5607 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.0005414/1.582, allocations: 261.6 kB / 0.7686 GB, free: 190.7 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008355/1.59, allocations: 6.276 MB / 0.7747 GB, free: 188.4 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/1.59, allocations: 7.281 kB / 0.7747 GB, free: 188.4 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.003629/1.594, allocations: 2.737 MB / 0.7774 GB, free: 187.3 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004236/1.598, allocations: 0.9687 MB / 0.7783 GB, free: 187 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02533/1.623, allocations: 16.01 MB / 0.794 GB, free: 179.8 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006674/1.63, allocations: 5.969 MB / 0.7998 GB, free: 176.8 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004773/1.635, allocations: 1.892 MB / 0.8016 GB, free: 175.5 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/1.636, allocations: 361.6 kB / 0.802 GB, free: 175.2 MB / 0.5607 GB Notification: Performance of SimCode: time 1.022e-06/1.636, allocations: 0 / 0.802 GB, free: 175.2 MB / 0.5607 GB Notification: Performance of Templates: time 0.09417/1.73, allocations: 62.05 MB / 0.8626 GB, free: 115.4 MB / 0.5607 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches