Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 123.4 kB / 18.46 MB, free: 4.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002196/0.002196, allocations: 192.3 kB / 21.4 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 225.6 MB / 249.8 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 47.91 kB / 366.9 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09687/0.09839, allocations: 52.14 MB / 419 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2579/0.3563, allocations: 28.7 MB / 447.7 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01602/0.3723, allocations: 8.412 MB / 456.1 MB, free: 8.258 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006919/0.3792, allocations: 219.6 kB / 456.3 MB, free: 8.254 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01887/0.3981, allocations: 8.267 MB / 464.6 MB, free: 6.891 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01278/0.4108, allocations: 2.84 MB / 467.4 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006854/0.4177, allocations: 1.876 MB / 469.3 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01392/0.4316, allocations: 9.975 MB / 479.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02893/0.4605, allocations: 16.33 MB / 495.6 MB, free: 7.406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01088/0.4714, allocations: 5.375 MB / 0.4892 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01165/0.4831, allocations: 6.085 MB / 0.4952 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004604/0.4877, allocations: 1.539 MB / 0.4967 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007615/0.4953, allocations: 1.906 MB / 0.4985 GB, free: 8.754 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005823/0.5011, allocations: 2.993 MB / 0.5015 GB, free: 5.793 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01321/0.5143, allocations: 5.844 MB / 0.5072 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03081/0.5451, allocations: 20.67 MB / 0.5273 GB, free: 11.64 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.5451, allocations: 0 / 0.5273 GB, free: 11.64 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.5451, allocations: 0 / 0.5273 GB, free: 11.64 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.00065/0.5458, allocations: 0 / 0.5273 GB, free: 11.64 MB / 430.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.04043/0.5862, allocations: 12.06 MB / 0.5391 GB, free: 15.56 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.5863, allocations: 8.031 kB / 0.5391 GB, free: 15.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0335/0.6198, allocations: 5.679 MB / 0.5447 GB, free: 9.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/0.6354, allocations: 6.323 MB / 0.5509 GB, free: 3.594 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009241/0.6364, allocations: 0.6943 MB / 0.5515 GB, free: 2.906 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00392/0.6403, allocations: 0.933 MB / 0.5524 GB, free: 1.984 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04172/0.682, allocations: 15.07 MB / 0.5672 GB, free: 2.867 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004541/0.6824, allocations: 15.94 kB / 0.5672 GB, free: 2.852 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002967/0.6854, allocations: 387.9 kB / 0.5675 GB, free: 2.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006435/0.6861, allocations: 0.5155 MB / 0.568 GB, free: 1.961 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03214/0.7182, allocations: 13.74 MB / 0.5815 GB, free: 4.195 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09137/0.8096, allocations: 47.24 MB / 0.6276 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4426/1.252, allocations: 28.21 MB / 0.6551 GB, free: 125 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005663/1.258, allocations: 2.798 MB / 0.6579 GB, free: 124.9 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005043/1.258, allocations: 246.2 kB / 0.6581 GB, free: 124.7 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.425e-05/1.258, allocations: 72.12 kB / 0.6582 GB, free: 124.7 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 6.583e-06/1.258, allocations: 0 / 0.6582 GB, free: 124.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.03397/1.292, allocations: 14.86 MB / 0.6727 GB, free: 120.2 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.862e-05/1.292, allocations: 91.08 kB / 0.6728 GB, free: 120.1 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006744/1.299, allocations: 3.606 MB / 0.6763 GB, free: 118.8 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007494/1.3, allocations: 87.45 kB / 0.6764 GB, free: 118.8 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00278/1.303, allocations: 4.188 MB / 0.6805 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001482/1.304, allocations: 1.408 MB / 0.6818 GB, free: 115 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00184/1.306, allocations: 1.173 MB / 0.683 GB, free: 114.4 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.144e-05/1.306, allocations: 305.1 kB / 0.6833 GB, free: 114.1 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00332/1.309, allocations: 2.59 MB / 0.6858 GB, free: 113.2 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004412/1.314, allocations: 5.084 MB / 0.6908 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008935/1.323, allocations: 8.348 MB / 0.6989 GB, free: 103 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.634e-05/1.323, allocations: 25.03 kB / 0.699 GB, free: 103 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01441/1.337, allocations: 8.631 MB / 0.7074 GB, free: 99.52 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.452e-05/1.337, allocations: 39.31 kB / 0.7074 GB, free: 99.52 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/1.337, allocations: 85.69 kB / 0.7075 GB, free: 99.52 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/1.34, allocations: 0.8485 MB / 0.7083 GB, free: 99.35 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004691/1.344, allocations: 1.375 MB / 0.7097 GB, free: 99.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00959/1.354, allocations: 7.686 MB / 0.7172 GB, free: 94.28 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005054/1.359, allocations: 337 kB / 0.7175 GB, free: 93.99 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001124/1.36, allocations: 299.5 kB / 0.7178 GB, free: 93.71 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.006552/1.367, allocations: 3.507 MB / 0.7212 GB, free: 90.26 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/1.368, allocations: 434.9 kB / 0.7216 GB, free: 89.83 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009315/1.377, allocations: 5.964 MB / 0.7275 GB, free: 83.84 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/1.377, allocations: 44 kB / 0.7275 GB, free: 83.8 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/1.377, allocations: 8 kB / 0.7275 GB, free: 83.79 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.913e-05/1.377, allocations: 19.92 kB / 0.7275 GB, free: 83.77 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02577/1.403, allocations: 14.93 MB / 0.7421 GB, free: 68.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/1.403, allocations: 8.094 kB / 0.7421 GB, free: 68.79 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002511/1.406, allocations: 0.693 MB / 0.7428 GB, free: 68.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001971/1.408, allocations: 0.7092 MB / 0.7435 GB, free: 67.39 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003857/1.408, allocations: 87.92 kB / 0.7436 GB, free: 67.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007629/1.416, allocations: 6.713 MB / 0.7501 GB, free: 60.46 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/1.416, allocations: 8 kB / 0.7501 GB, free: 60.46 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01189/1.428, allocations: 8.752 MB / 0.7587 GB, free: 51.58 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002331/1.43, allocations: 0.9043 MB / 0.7596 GB, free: 50.66 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008223/1.431, allocations: 83.88 kB / 0.7596 GB, free: 50.57 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002067/1.433, allocations: 179.8 kB / 0.7598 GB, free: 50.4 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005013/1.433, allocations: 266.7 kB / 0.7601 GB, free: 50.14 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002148/1.434, allocations: 115.8 kB / 0.7602 GB, free: 50.03 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003647/1.437, allocations: 2.415 MB / 0.7625 GB, free: 47.62 MB / 0.5138 GB Notification: Performance of sort global known variables: time 6e-08/1.437, allocations: 0 / 0.7625 GB, free: 47.62 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007164/1.444, allocations: 1.547 MB / 0.764 GB, free: 46.08 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.0008799/1.445, allocations: 265 kB / 0.7643 GB, free: 45.82 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009661/1.455, allocations: 6.268 MB / 0.7704 GB, free: 39.54 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/1.455, allocations: 5.938 kB / 0.7704 GB, free: 39.54 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004441/1.459, allocations: 2.729 MB / 0.7731 GB, free: 36.8 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005055/1.464, allocations: 0.9638 MB / 0.774 GB, free: 35.87 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02747/1.492, allocations: 15.67 MB / 0.7893 GB, free: 20.07 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005886/1.498, allocations: 5.791 MB / 0.795 GB, free: 14.23 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001738/1.5, allocations: 383.4 kB / 0.7953 GB, free: 13.86 MB / 0.5138 GB Notification: Performance of SimCode: time 2.154e-06/1.5, allocations: 0 / 0.7953 GB, free: 13.86 MB / 0.5138 GB Notification: Performance of Templates: time 0.4208/1.92, allocations: 152.1 MB / 0.9439 GB, free: 96.07 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.82133034011349]