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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001566/0.001566, allocations: 116.7 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001675/0.001675, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.417/1.417, allocations: 230.4 MB / 255.4 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] 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] "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.001967/0.001967, allocations: 71.83 kB / 374.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09557/0.09754, allocations: 53.31 MB / 428.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2238/0.3214, allocations: 28.74 MB / 456.8 MB, free: 9.324 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02068/0.3421, allocations: 8.514 MB / 465.4 MB, free: 3.246 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007082/0.3491, allocations: 212.6 kB / 465.6 MB, free: 3.207 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02031/0.3695, allocations: 8.271 MB / 473.8 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.3799, allocations: 2.842 MB / 476.7 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006072/0.3859, allocations: 1.884 MB / 478.6 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01508/0.401, allocations: 10.03 MB / 488.6 MB, free: 3.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02855/0.4296, allocations: 16.34 MB / 0.4931 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01028/0.4399, allocations: 5.373 MB / 0.4983 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01127/0.4511, allocations: 6.128 MB / 0.5043 GB, free: 8.285 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004123/0.4552, allocations: 1.539 MB / 0.5058 GB, free: 6.746 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006939/0.4622, allocations: 1.921 MB / 0.5077 GB, free: 4.824 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00574/0.4679, allocations: 2.993 MB / 0.5106 GB, free: 1.824 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01199/0.4799, allocations: 5.852 MB / 0.5163 GB, free: 11.95 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02852/0.5084, allocations: 20.69 MB / 0.5365 GB, free: 7.195 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.5084, allocations: 4 kB / 0.5365 GB, free: 7.191 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.5084, allocations: 0 / 0.5365 GB, free: 7.191 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000732/0.5092, allocations: 0 / 0.5365 GB, free: 7.191 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.03838/0.5476, allocations: 12.09 MB / 0.5484 GB, free: 10.99 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.5476, allocations: 8.031 kB / 0.5484 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03148/0.5791, allocations: 5.597 MB / 0.5538 GB, free: 5.375 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0134/0.5925, allocations: 6.334 MB / 0.56 GB, free: 14.98 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007502/0.5932, allocations: 0.7024 MB / 0.5607 GB, free: 14.28 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003336/0.5966, allocations: 0.9335 MB / 0.5616 GB, free: 13.35 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0369/0.6335, allocations: 15.1 MB / 0.5764 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003812/0.6339, allocations: 15.94 kB / 0.5764 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002709/0.6366, allocations: 388 kB / 0.5767 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006049/0.6372, allocations: 0.5194 MB / 0.5772 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0298/0.667, allocations: 13.78 MB / 0.5907 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4457/1.113, allocations: 47.64 MB / 0.6372 GB, free: 128.1 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01683/1.129, allocations: 28.24 MB / 0.6648 GB, free: 102.8 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004825/1.134, allocations: 2.808 MB / 0.6675 GB, free: 102.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004643/1.135, allocations: 345.1 kB / 0.6679 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.646e-05/1.135, allocations: 76.39 kB / 0.6679 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 5.6e-06/1.135, allocations: 0 / 0.6679 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.02932/1.164, allocations: 14.91 MB / 0.6825 GB, free: 97.55 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/1.164, allocations: 90.14 kB / 0.6826 GB, free: 97.49 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004432/1.169, allocations: 3.609 MB / 0.6861 GB, free: 96.19 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005397/1.169, allocations: 89.17 kB / 0.6862 GB, free: 96.11 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001657/1.171, allocations: 4.189 MB / 0.6903 GB, free: 93.45 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001121/1.172, allocations: 1.409 MB / 0.6917 GB, free: 92.36 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00148/1.173, allocations: 1.176 MB / 0.6928 GB, free: 91.79 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.753e-05/1.173, allocations: 305.1 kB / 0.6931 GB, free: 91.49 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002994/1.176, allocations: 2.593 MB / 0.6956 GB, free: 90.53 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004068/1.181, allocations: 5.092 MB / 0.7006 GB, free: 85.95 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008054/1.189, allocations: 8.349 MB / 0.7088 GB, free: 79.28 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.47e-05/1.189, allocations: 29.12 kB / 0.7088 GB, free: 79.27 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0132/1.202, allocations: 8.651 MB / 0.7172 GB, free: 74.69 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.859e-05/1.202, allocations: 38.91 kB / 0.7173 GB, free: 74.69 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001112/1.202, allocations: 85.22 kB / 0.7174 GB, free: 74.69 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002135/1.204, allocations: 0.8525 MB / 0.7182 GB, free: 74.07 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004376/1.209, allocations: 1.369 MB / 0.7195 GB, free: 72.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008592/1.217, allocations: 7.685 MB / 0.727 GB, free: 64.88 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00406/1.221, allocations: 327.5 kB / 0.7273 GB, free: 64.56 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007546/1.222, allocations: 313.5 kB / 0.7276 GB, free: 64.26 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.005002/1.227, allocations: 3.521 MB / 0.7311 GB, free: 60.72 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/1.228, allocations: 421.3 kB / 0.7315 GB, free: 60.31 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008601/1.237, allocations: 5.964 MB / 0.7373 GB, free: 54.32 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.468e-05/1.237, allocations: 40 kB / 0.7373 GB, free: 54.28 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/1.237, allocations: 11.94 kB / 0.7374 GB, free: 54.27 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.739e-05/1.237, allocations: 19.92 kB / 0.7374 GB, free: 54.25 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02224/1.259, allocations: 14.96 MB / 0.752 GB, free: 39.24 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.401e-05/1.259, allocations: 4 kB / 0.752 GB, free: 39.23 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00253/1.261, allocations: 0.6948 MB / 0.7527 GB, free: 38.54 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00185/1.263, allocations: 0.7093 MB / 0.7534 GB, free: 37.83 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004021/1.264, allocations: 91.97 kB / 0.7534 GB, free: 37.74 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007473/1.271, allocations: 6.71 MB / 0.76 GB, free: 30.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/1.271, allocations: 11.94 kB / 0.76 GB, free: 30.89 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01094/1.282, allocations: 8.773 MB / 0.7686 GB, free: 21.99 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001915/1.284, allocations: 0.9081 MB / 0.7695 GB, free: 21.06 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007498/1.285, allocations: 75.98 kB / 0.7695 GB, free: 20.98 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00205/1.287, allocations: 184.6 kB / 0.7697 GB, free: 20.8 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004577/1.287, allocations: 270.7 kB / 0.77 GB, free: 20.54 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002069/1.287, allocations: 119.9 kB / 0.7701 GB, free: 20.42 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003397/1.291, allocations: 2.412 MB / 0.7724 GB, free: 18.02 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.2e-07/1.291, allocations: 3.938 kB / 0.7724 GB, free: 18.02 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006117/1.297, allocations: 1.555 MB / 0.774 GB, free: 16.46 MB / 0.5138 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.0007302/1.298, allocations: 266.8 kB / 0.7742 GB, free: 16.2 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00866/1.306, allocations: 6.281 MB / 0.7803 GB, free: 9.914 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/1.306, allocations: 4 kB / 0.7803 GB, free: 9.91 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004111/1.311, allocations: 2.736 MB / 0.783 GB, free: 7.164 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004649/1.315, allocations: 0.9568 MB / 0.784 GB, free: 6.246 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0292/1.344, allocations: 15.63 MB / 0.7992 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009641/1.354, allocations: 5.791 MB / 0.8049 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001795/1.356, allocations: 403.3 kB / 0.8053 GB, free: 268 kB / 0.5294 GB Notification: Performance of SimCode: time 1.994e-06/1.356, allocations: 3.938 kB / 0.8053 GB, free: 264 kB / 0.5294 GB Notification: Performance of Templates: time 0.3607/1.716, allocations: 153.4 MB / 0.9551 GB, free: 86.2 MB / 0.5607 GB " [Timeout remaining time 658] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.086295327870175]