Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.004977/0.004977, allocations: 112 kB / 21.97 MB, free: 5.25 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.001374/0.001374, allocations: 202.5 kB / 25.27 MB, free: 3.238 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.275/1.275, allocations: 207.6 MB / 236.1 MB, free: 9.977 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 55.92 kB / 348 MB, free: 9.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2294, allocations: 49.15 MB / 397.2 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02863/0.258, allocations: 29.4 MB / 426.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0184/0.2764, allocations: 8.576 MB / 435.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00586/0.2823, allocations: 218.1 kB / 435.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0189/0.3012, allocations: 8.328 MB / 443.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01078/0.312, allocations: 3.144 MB / 446.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005723/0.3177, allocations: 1.977 MB / 448.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01508/0.3328, allocations: 10.59 MB / 459.4 MB, free: 4.852 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02116/0.3539, allocations: 14.19 MB / 473.6 MB, free: 6.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008172/0.3621, allocations: 5.739 MB / 479.3 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01068/0.3728, allocations: 6.455 MB / 485.8 MB, free: 10.28 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003936/0.3767, allocations: 1.578 MB / 487.4 MB, free: 8.703 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005554/0.3823, allocations: 1.945 MB / 489.3 MB, free: 6.758 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00452/0.3868, allocations: 3.195 MB / 492.5 MB, free: 3.555 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01036/0.3972, allocations: 6.12 MB / 498.6 MB, free: 13.41 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02656/0.4237, allocations: 21.25 MB / 0.5077 GB, free: 8.102 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4237, allocations: 0 / 0.5077 GB, free: 8.102 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4237, allocations: 0 / 0.5077 GB, free: 8.102 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005155/0.4242, allocations: 0 / 0.5077 GB, free: 8.102 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03556/0.4598, allocations: 12.6 MB / 0.52 GB, free: 11.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.4598, allocations: 19.98 kB / 0.52 GB, free: 11.39 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000308/0.4602, allocations: 307 kB / 0.5203 GB, free: 11.08 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005125/0.4653, allocations: 1.647 MB / 0.5219 GB, free: 9.422 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04708/0.5124, allocations: 8.651 MB / 0.5304 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01479/0.5272, allocations: 5.97 MB / 0.5362 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000895/0.528, allocations: 0.7464 MB / 0.5369 GB, free: 9.965 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00421/0.5323, allocations: 0.9764 MB / 0.5379 GB, free: 8.988 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.045/0.5773, allocations: 16.6 MB / 0.5541 GB, free: 8.297 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005019/0.5778, allocations: 23.89 kB / 0.5541 GB, free: 8.273 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003198/0.581, allocations: 412 kB / 0.5545 GB, free: 7.871 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007408/0.5817, allocations: 0.6106 MB / 0.5551 GB, free: 7.258 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3727/0.9544, allocations: 15.99 MB / 0.5707 GB, free: 130.7 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07992/1.034, allocations: 49.95 MB / 0.6195 GB, free: 96.04 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01878/1.053, allocations: 12.28 MB / 0.6315 GB, free: 86.52 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004656/1.058, allocations: 3.179 MB / 0.6346 GB, free: 83.33 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01566/1.073, allocations: 9.138 MB / 0.6435 GB, free: 74.43 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.022e-05/1.073, allocations: 68.7 kB / 0.6436 GB, free: 74.35 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 4.799e-06/1.073, allocations: 3.969 kB / 0.6436 GB, free: 74.35 MB / 478.1 MB Notification: Performance of matching and sorting (n=361): time 0.04761/1.121, allocations: 22.76 MB / 0.6658 GB, free: 51.95 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/1.121, allocations: 102.2 kB / 0.6659 GB, free: 51.84 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005951/1.127, allocations: 4.067 MB / 0.6699 GB, free: 47.75 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005369/1.128, allocations: 85.7 kB / 0.67 GB, free: 47.66 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001957/1.13, allocations: 4.802 MB / 0.6746 GB, free: 42.82 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001132/1.131, allocations: 1.325 MB / 0.6759 GB, free: 41.48 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002267/1.133, allocations: 1.35 MB / 0.6773 GB, free: 40.12 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.826e-05/1.133, allocations: 309 kB / 0.6775 GB, free: 39.82 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003718/1.137, allocations: 2.914 MB / 0.6804 GB, free: 36.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005002/1.142, allocations: 6.119 MB / 0.6864 GB, free: 29.25 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009576/1.151, allocations: 9.77 MB / 0.6959 GB, free: 17.92 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.165e-05/1.151, allocations: 32 kB / 0.6959 GB, free: 17.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=861) (initialization): time 0.01704/1.168, allocations: 10.51 MB / 0.7062 GB, free: 7.344 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/1.169, allocations: 55.94 kB / 0.7063 GB, free: 7.289 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001794/1.169, allocations: 108.9 kB / 0.7064 GB, free: 7.184 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004209/1.173, allocations: 1.663 MB / 0.708 GB, free: 5.512 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004773/1.178, allocations: 1.478 MB / 0.7094 GB, free: 4.031 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02272/1.2, allocations: 15.53 MB / 0.7246 GB, free: 4.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00529/1.206, allocations: 375.5 kB / 0.725 GB, free: 3.883 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001256/1.207, allocations: 383.9 kB / 0.7253 GB, free: 3.508 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (771): * Single equations (assignments): 769 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,38,65.6%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00766/1.215, allocations: 3.77 MB / 0.729 GB, free: 15.71 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00147/1.216, allocations: 457 kB / 0.7294 GB, free: 15.27 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01438/1.231, allocations: 6.842 MB / 0.7361 GB, free: 8.375 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.733e-05/1.231, allocations: 43.94 kB / 0.7362 GB, free: 8.332 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.611e-05/1.231, allocations: 15.94 kB / 0.7362 GB, free: 8.316 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.662e-05/1.231, allocations: 19.92 kB / 0.7362 GB, free: 8.297 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03192/1.263, allocations: 14.83 MB / 0.7507 GB, free: 9.305 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/1.263, allocations: 4 kB / 0.7507 GB, free: 9.301 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002842/1.265, allocations: 0.5889 MB / 0.7513 GB, free: 8.711 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004358/1.27, allocations: 1.453 MB / 0.7527 GB, free: 7.25 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005425/1.27, allocations: 79.98 kB / 0.7528 GB, free: 7.172 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2245/1.495, allocations: 13.86 MB / 0.7663 GB, free: 164.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/1.495, allocations: 6.25 kB / 0.7663 GB, free: 164.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01541/1.51, allocations: 9.821 MB / 0.7759 GB, free: 160.3 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00232/1.513, allocations: 0.8967 MB / 0.7768 GB, free: 160 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007767/1.513, allocations: 74.39 kB / 0.7768 GB, free: 160 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002216/1.516, allocations: 189.3 kB / 0.777 GB, free: 159.9 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007124/1.516, allocations: 293 kB / 0.7773 GB, free: 159.9 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002706/1.516, allocations: 104.2 kB / 0.7774 GB, free: 159.9 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004192/1.521, allocations: 2.677 MB / 0.78 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.11e-07/1.521, allocations: 0 / 0.78 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006758/1.527, allocations: 1.733 MB / 0.7817 GB, free: 158.7 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (302): * Single equations (assignments): 300 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,38,65.6%), (8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01359/1.541, allocations: 10.53 MB / 0.792 GB, free: 154 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01089/1.552, allocations: 7.502 MB / 0.7993 GB, free: 150.9 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/1.552, allocations: 0 / 0.7993 GB, free: 150.9 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00522/1.557, allocations: 3.359 MB / 0.8026 GB, free: 148 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004613/1.562, allocations: 0.9762 MB / 0.8035 GB, free: 147.3 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08548/1.647, allocations: 60.8 MB / 0.8629 GB, free: 84.81 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008377/1.656, allocations: 6.376 MB / 0.8691 GB, free: 78.39 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005021/1.661, allocations: 2.02 MB / 0.8711 GB, free: 76.36 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004977/1.666, allocations: 3.51 MB / 0.8745 GB, free: 72.85 MB / 0.5138 GB Notification: Performance of SimCode: time 1.583e-06/1.666, allocations: 0 / 0.8745 GB, free: 72.85 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4441/2.11, allocations: 138.5 MB / 1.01 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.69/22.8, allocations: 11.28 kB / 1.01 GB, free: 145.7 MB / 0.5294 GB " [Timeout remaining time 637] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 26.968465215992182]