Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 209 kB / 24.47 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 258.2 MB, free: 7.75 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 43.92 kB / 379 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2386, allocations: 53.37 MB / 432.4 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02994/0.2686, allocations: 24.63 MB / 457 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01681/0.2854, allocations: 8.174 MB / 465.2 MB, free: 5.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005047/0.2904, allocations: 250.8 kB / 465.4 MB, free: 5.516 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01916/0.3096, allocations: 7.64 MB / 473.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009923/0.3195, allocations: 2.825 MB / 475.9 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006202/0.3257, allocations: 1.851 MB / 477.7 MB, free: 9.172 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01399/0.3397, allocations: 10.1 MB / 487.8 MB, free: 15.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02396/0.3636, allocations: 13.86 MB / 0.49 GB, free: 1.039 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008477/0.3721, allocations: 5.506 MB / 0.4953 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01034/0.3825, allocations: 5.855 MB / 0.501 GB, free: 5.645 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004809/0.3873, allocations: 1.539 MB / 0.5026 GB, free: 4.105 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006227/0.3935, allocations: 1.906 MB / 0.5044 GB, free: 2.199 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00483/0.3983, allocations: 2.996 MB / 0.5073 GB, free: 15.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009541/0.4079, allocations: 4.541 MB / 0.5118 GB, free: 10.64 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02725/0.4351, allocations: 20.77 MB / 0.5321 GB, free: 5.797 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.4351, allocations: 0 / 0.5321 GB, free: 5.797 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4351, allocations: 0 / 0.5321 GB, free: 5.797 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006049/0.4357, allocations: 0 / 0.5321 GB, free: 5.797 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.4602/0.8959, allocations: 12 MB / 0.5438 GB, free: 90.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.896, allocations: 9.625 kB / 0.5438 GB, free: 90.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0297/0.9257, allocations: 5.603 MB / 0.5493 GB, free: 87.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01247/0.9381, allocations: 6.383 MB / 0.5555 GB, free: 81.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006734/0.9388, allocations: 0.7054 MB / 0.5562 GB, free: 80.92 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003916/0.9427, allocations: 0.9177 MB / 0.5571 GB, free: 80.01 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03537/0.9781, allocations: 15.24 MB / 0.572 GB, free: 64.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004996/0.9786, allocations: 19.89 kB / 0.572 GB, free: 64.66 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002965/0.9816, allocations: 403.1 kB / 0.5724 GB, free: 64.27 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004389/0.982, allocations: 0.5116 MB / 0.5729 GB, free: 63.76 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02622/1.008, allocations: 13.72 MB / 0.5863 GB, free: 50.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0632/1.071, allocations: 41.33 MB / 0.6266 GB, free: 8.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01179/1.083, allocations: 7.99 MB / 0.6344 GB, free: 1.578 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004168/1.087, allocations: 2.794 MB / 0.6372 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003362/1.088, allocations: 94.94 kB / 0.6373 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.306e-05/1.088, allocations: 69.58 kB / 0.6373 GB, free: 14.61 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 6.442e-06/1.088, allocations: 0 / 0.6373 GB, free: 14.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03102/1.119, allocations: 14.68 MB / 0.6517 GB, free: 15.98 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.404e-05/1.119, allocations: 94.48 kB / 0.6517 GB, free: 15.88 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005316/1.124, allocations: 3.551 MB / 0.6552 GB, free: 12.32 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005786/1.125, allocations: 89.7 kB / 0.6553 GB, free: 12.23 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003083/1.128, allocations: 4.187 MB / 0.6594 GB, free: 8.004 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00169/1.13, allocations: 1.41 MB / 0.6608 GB, free: 6.582 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001793/1.131, allocations: 1.172 MB / 0.6619 GB, free: 5.398 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/1.131, allocations: 305.1 kB / 0.6622 GB, free: 5.098 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004148/1.136, allocations: 2.592 MB / 0.6647 GB, free: 2.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006474/1.142, allocations: 5.12 MB / 0.6697 GB, free: 12.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/1.154, allocations: 8.344 MB / 0.6779 GB, free: 2.664 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.182e-05/1.155, allocations: 28 kB / 0.6779 GB, free: 2.637 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01726/1.172, allocations: 8.626 MB / 0.6863 GB, free: 9.984 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.74e-05/1.172, allocations: 44 kB / 0.6864 GB, free: 9.941 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001329/1.172, allocations: 80 kB / 0.6865 GB, free: 9.863 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002359/1.174, allocations: 0.838 MB / 0.6873 GB, free: 9.023 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005079/1.179, allocations: 1.373 MB / 0.6886 GB, free: 7.648 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/1.191, allocations: 7.348 MB / 0.6958 GB, free: 184 kB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005834/1.197, allocations: 331.7 kB / 0.6961 GB, free: 15.85 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/1.198, allocations: 308 kB / 0.6964 GB, free: 15.55 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.006798/1.205, allocations: 3.505 MB / 0.6998 GB, free: 12.03 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001225/1.206, allocations: 409.4 kB / 0.7002 GB, free: 11.63 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01083/1.217, allocations: 5.957 MB / 0.706 GB, free: 5.629 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.72e-05/1.217, allocations: 43.94 kB / 0.7061 GB, free: 5.586 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/1.217, allocations: 8 kB / 0.7061 GB, free: 5.578 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.195e-05/1.217, allocations: 19.92 kB / 0.7061 GB, free: 5.559 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02734/1.244, allocations: 13.01 MB / 0.7188 GB, free: 8.402 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-05/1.244, allocations: 4 kB / 0.7188 GB, free: 8.398 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00296/1.247, allocations: 0.6943 MB / 0.7195 GB, free: 7.703 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002127/1.25, allocations: 0.6981 MB / 0.7202 GB, free: 7.004 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000554/1.25, allocations: 91.91 kB / 0.7203 GB, free: 6.914 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009961/1.26, allocations: 6.388 MB / 0.7265 GB, free: 436 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/1.26, allocations: 7.938 kB / 0.7265 GB, free: 428 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01524/1.275, allocations: 8.756 MB / 0.7351 GB, free: 7.531 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003069/1.278, allocations: 0.8212 MB / 0.7359 GB, free: 6.707 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001009/1.279, allocations: 83.97 kB / 0.7359 GB, free: 6.625 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002306/1.282, allocations: 183.8 kB / 0.7361 GB, free: 6.445 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005909/1.282, allocations: 282.6 kB / 0.7364 GB, free: 6.168 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002548/1.283, allocations: 120 kB / 0.7365 GB, free: 6.051 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004133/1.287, allocations: 2.279 MB / 0.7387 GB, free: 3.781 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/1.287, allocations: 0 / 0.7387 GB, free: 3.781 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006662/1.293, allocations: 1.551 MB / 0.7402 GB, free: 2.23 MB / 0.545 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.000936/1.294, allocations: 255.1 kB / 0.7405 GB, free: 1.973 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01146/1.306, allocations: 6.276 MB / 0.7466 GB, free: 11.69 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/1.306, allocations: 0 / 0.7466 GB, free: 11.69 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.00528/1.311, allocations: 2.722 MB / 0.7493 GB, free: 8.961 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005071/1.316, allocations: 0.8965 MB / 0.7501 GB, free: 8.09 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2605/1.577, allocations: 15.74 MB / 0.7655 GB, free: 196.1 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006207/1.583, allocations: 5.342 MB / 0.7707 GB, free: 195.7 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0015/1.584, allocations: 403.1 kB / 0.7711 GB, free: 195.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.122e-06/1.584, allocations: 0 / 0.7711 GB, free: 195.7 MB / 0.5607 GB Notification: Performance of Templates: time 0.1552/1.74, allocations: 155.2 MB / 0.9227 GB, free: 49.19 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.09690641006455]