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.001569/0.001569, allocations: 119.8 kB / 20.43 MB, free: 1.297 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.001756/0.001756, allocations: 206.8 kB / 23.74 MB, free: 4.516 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.464/1.464, allocations: 230.6 MB / 257.5 MB, free: 7.996 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 51.92 kB / 377.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2574, allocations: 53.36 MB / 431.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03528/0.2926, allocations: 28.81 MB / 460 MB, free: 9.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02017/0.3128, allocations: 8.534 MB / 468.5 MB, free: 1.367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005825/0.3186, allocations: 254.8 kB / 468.8 MB, free: 1.117 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02016/0.3388, allocations: 8.293 MB / 477.1 MB, free: 8.805 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01065/0.3494, allocations: 2.924 MB / 480 MB, free: 5.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006647/0.3561, allocations: 1.923 MB / 481.9 MB, free: 3.949 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01514/0.3712, allocations: 10.12 MB / 492 MB, free: 9.805 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02894/0.4002, allocations: 14.05 MB / 0.4942 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01005/0.4102, allocations: 5.49 MB / 0.4996 GB, free: 6.113 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0118/0.422, allocations: 6.148 MB / 0.5056 GB, free: 15.95 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005128/0.4271, allocations: 1.543 MB / 0.5071 GB, free: 14.4 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00745/0.4346, allocations: 1.933 MB / 0.509 GB, free: 12.47 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005975/0.4406, allocations: 2.985 MB / 0.5119 GB, free: 9.477 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01289/0.4535, allocations: 5.848 MB / 0.5176 GB, free: 3.605 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4948/0.9482, allocations: 20.69 MB / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.918e-06/0.9483, allocations: 0.6875 kB / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.9483, allocations: 0 / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006138/0.9489, allocations: 0.5 kB / 0.5378 GB, free: 37.98 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.04094/0.9898, allocations: 12.02 MB / 0.5495 GB, free: 34.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.9899, allocations: 9.656 kB / 0.5495 GB, free: 34.66 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006233/0.9961, allocations: 1.543 MB / 0.5511 GB, free: 34.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03033/1.026, allocations: 5.6 MB / 0.5565 GB, free: 33.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01649/1.043, allocations: 6.381 MB / 0.5628 GB, free: 33.08 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008197/1.044, allocations: 0.701 MB / 0.5634 GB, free: 33.06 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003987/1.048, allocations: 0.9341 MB / 0.5643 GB, free: 33.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03721/1.085, allocations: 15.11 MB / 0.5791 GB, free: 23.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005373/1.085, allocations: 15.94 kB / 0.5791 GB, free: 23.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00333/1.089, allocations: 391.4 kB / 0.5795 GB, free: 23.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004553/1.089, allocations: 0.5156 MB / 0.58 GB, free: 22.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02747/1.117, allocations: 13.78 MB / 0.5935 GB, free: 8.863 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1044/1.221, allocations: 46.61 MB / 0.639 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0168/1.238, allocations: 8.055 MB / 0.6468 GB, free: 3.297 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006187/1.244, allocations: 2.809 MB / 0.6496 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005809/1.245, allocations: 106.8 kB / 0.6497 GB, free: 416 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/1.245, allocations: 77.56 kB / 0.6498 GB, free: 328 kB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 1.495e-05/1.245, allocations: 2.297 kB / 0.6498 GB, free: 328 kB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.04212/1.287, allocations: 14.76 MB / 0.6642 GB, free: 1.566 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.568e-05/1.287, allocations: 98.16 kB / 0.6643 GB, free: 1.461 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008448/1.296, allocations: 3.607 MB / 0.6678 GB, free: 13.86 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001076/1.297, allocations: 85.7 kB / 0.6679 GB, free: 13.77 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003898/1.301, allocations: 4.196 MB / 0.672 GB, free: 9.566 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002156/1.303, allocations: 1.408 MB / 0.6733 GB, free: 8.176 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003764/1.306, allocations: 1.172 MB / 0.6745 GB, free: 6.992 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001427/1.307, allocations: 309.1 kB / 0.6748 GB, free: 6.688 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005166/1.312, allocations: 2.596 MB / 0.6773 GB, free: 4.086 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008253/1.32, allocations: 5.086 MB / 0.6823 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01455/1.335, allocations: 8.354 MB / 0.6904 GB, free: 4.668 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001167/1.335, allocations: 24 kB / 0.6905 GB, free: 4.645 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.02157/1.356, allocations: 8.656 MB / 0.6989 GB, free: 12.48 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001881/1.356, allocations: 40.88 kB / 0.699 GB, free: 12.44 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000252/1.357, allocations: 84 kB / 0.699 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002918/1.36, allocations: 0.8497 MB / 0.6999 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005856/1.365, allocations: 1.371 MB / 0.7012 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01426/1.38, allocations: 7.592 MB / 0.7086 GB, free: 2.578 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005523/1.385, allocations: 327.5 kB / 0.7089 GB, free: 2.258 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001696/1.387, allocations: 308 kB / 0.7092 GB, free: 1.957 MB / 0.545 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.00937/1.396, allocations: 3.514 MB / 0.7127 GB, free: 14.53 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001753/1.398, allocations: 425.3 kB / 0.7131 GB, free: 14.11 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01556/1.414, allocations: 5.969 MB / 0.7189 GB, free: 8.137 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.577e-05/1.414, allocations: 40 kB / 0.7189 GB, free: 8.098 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-05/1.414, allocations: 8 kB / 0.7189 GB, free: 8.09 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.026e-05/1.414, allocations: 19.92 kB / 0.719 GB, free: 8.07 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03997/1.454, allocations: 14.98 MB / 0.7336 GB, free: 9.168 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-05/1.454, allocations: 4 kB / 0.7336 GB, free: 9.164 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003444/1.457, allocations: 0.6952 MB / 0.7343 GB, free: 8.508 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002573/1.46, allocations: 0.7136 MB / 0.735 GB, free: 7.793 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009151/1.461, allocations: 91.91 kB / 0.7351 GB, free: 7.703 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/1.473, allocations: 6.618 MB / 0.7415 GB, free: 1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/1.473, allocations: 6.438 kB / 0.7415 GB, free: 0.9961 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01845/1.491, allocations: 8.777 MB / 0.7501 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003354/1.494, allocations: 0.8524 MB / 0.7509 GB, free: 7.27 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001458/1.496, allocations: 75.95 kB / 0.751 GB, free: 7.195 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00307/1.499, allocations: 175.8 kB / 0.7512 GB, free: 7.023 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009908/1.5, allocations: 287.6 kB / 0.7514 GB, free: 6.746 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005471/1.501, allocations: 120 kB / 0.7516 GB, free: 6.629 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005929/1.506, allocations: 2.416 MB / 0.7539 GB, free: 4.227 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.2e-07/1.506, allocations: 0 / 0.7539 GB, free: 4.227 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008677/1.515, allocations: 1.551 MB / 0.7554 GB, free: 2.676 MB / 0.5919 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.2713/1.786, allocations: 9.487 MB / 0.7647 GB, free: 225.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01059/1.797, allocations: 6.282 MB / 0.7708 GB, free: 222.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/1.797, allocations: 6.703 kB / 0.7708 GB, free: 222.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004647/1.802, allocations: 2.744 MB / 0.7735 GB, free: 221.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005507/1.807, allocations: 0.9668 MB / 0.7745 GB, free: 221.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.104/1.911, allocations: 52.7 MB / 0.8259 GB, free: 180.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009766/1.921, allocations: 5.975 MB / 0.8318 GB, free: 174.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005744/1.927, allocations: 1.885 MB / 0.8336 GB, free: 172.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005461/1.932, allocations: 3.233 MB / 0.8368 GB, free: 169.2 MB / 0.5919 GB Notification: Performance of SimCode: time 2.635e-06/1.932, allocations: 0 / 0.8368 GB, free: 169.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1976/2.13, allocations: 126.3 MB / 0.9601 GB, free: 43.43 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.04/24.16, allocations: 11.94 kB / 0.9601 GB, free: 43.42 MB / 0.5919 GB " [Timeout remaining time 636] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] 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: 28.095978813013062]