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.0008608/0.0008608, allocations: 87.62 kB / 21.43 MB, free: 3.129 MB / 18.57 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.003341/0.003341, allocations: 164.6 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.8008/0.8008, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 298.5 MB, free: 3.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.129e-05/1.261e-05, allocations: 2.281 kB / 298.5 MB, free: 3.457 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1365/0.1365, allocations: 25.11 MB / 323.6 MB, free: 376 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01922/0.1557, allocations: 8.252 MB / 331.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006452/0.1622, allocations: 217.4 kB / 332.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01065/0.1728, allocations: 8.083 MB / 340.1 MB, free: 4.445 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009843/0.1827, allocations: 3.132 MB / 343.3 MB, free: 1.938 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004964/0.1876, allocations: 1.898 MB / 345.2 MB, free: 40 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01329/0.2009, allocations: 10.93 MB / 356.1 MB, free: 5.074 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02056/0.2215, allocations: 14.06 MB / 370.2 MB, free: 6.871 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01253/0.234, allocations: 8.444 MB / 378.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009375/0.2434, allocations: 5.586 MB / 384.2 MB, free: 8.816 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004093/0.2475, allocations: 1.58 MB / 385.8 MB, free: 7.238 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005302/0.2528, allocations: 1.937 MB / 387.7 MB, free: 5.301 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004945/0.2577, allocations: 3.253 MB / 391 MB, free: 2.039 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01069/0.2684, allocations: 4.097 MB / 395.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02115/0.2896, allocations: 21.49 MB / 416.5 MB, free: 8.391 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.2896, allocations: 0 / 416.5 MB, free: 8.391 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2896, allocations: 0 / 416.5 MB, free: 8.391 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006122/0.2902, allocations: 0 / 416.5 MB, free: 8.391 MB / 378.7 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.02985/0.3201, allocations: 12.5 MB / 429 MB, free: 11.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.49e-05/0.3201, allocations: 11.98 kB / 429.1 MB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004993/0.3251, allocations: 1.647 MB / 430.7 MB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0249/0.35, allocations: 8.659 MB / 439.4 MB, free: 1.453 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01093/0.361, allocations: 5.97 MB / 445.3 MB, free: 11.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005582/0.3615, allocations: 0.7464 MB / 446.1 MB, free: 10.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003888/0.3654, allocations: 0.9764 MB / 447 MB, free: 9.688 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2726/0.638, allocations: 16.73 MB / 463.8 MB, free: 104.9 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002621/0.6382, allocations: 11.52 kB / 463.8 MB, free: 104.9 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001583/0.6398, allocations: 412.6 kB / 464.2 MB, free: 104.6 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006405/0.6405, allocations: 0.6095 MB / 464.8 MB, free: 104.5 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02589/0.6664, allocations: 15.9 MB / 480.7 MB, free: 98.69 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06896/0.7353, allocations: 45.81 MB / 0.5142 GB, free: 61.36 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01207/0.7474, allocations: 12.12 MB / 0.526 GB, free: 52.02 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003401/0.7508, allocations: 3.151 MB / 0.5291 GB, free: 48.87 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01096/0.7618, allocations: 8.383 MB / 0.5373 GB, free: 40.68 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.637e-05/0.7618, allocations: 60.69 kB / 0.5373 GB, free: 40.61 MB / 410.8 MB Notification: Performance of pre-optimization done (n=270): time 5.891e-06/0.7618, allocations: 0 / 0.5373 GB, free: 40.61 MB / 410.8 MB Notification: Performance of matching and sorting (n=278): time 0.01762/0.7794, allocations: 12.83 MB / 0.5498 GB, free: 28.11 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.7795, allocations: 81.59 kB / 0.5499 GB, free: 28.02 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004524/0.784, allocations: 4.246 MB / 0.5541 GB, free: 23.8 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002013/0.7842, allocations: 65.7 kB / 0.5541 GB, free: 23.73 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001565/0.7858, allocations: 4.798 MB / 0.5588 GB, free: 18.93 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006079/0.7864, allocations: 1.023 MB / 0.5598 GB, free: 17.92 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001041/0.7874, allocations: 1.223 MB / 0.561 GB, free: 16.69 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 3.308e-05/0.7875, allocations: 309.1 kB / 0.5613 GB, free: 16.38 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002217/0.7897, allocations: 2.444 MB / 0.5637 GB, free: 13.93 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003129/0.7928, allocations: 5.624 MB / 0.5692 GB, free: 6.766 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007813/0.8006, allocations: 8.69 MB / 0.5777 GB, free: 12.5 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001301/0.8007, allocations: 32 kB / 0.5777 GB, free: 12.47 MB / 426.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01222/0.813, allocations: 8.73 MB / 0.5862 GB, free: 3.695 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.412e-05/0.813, allocations: 52 kB / 0.5863 GB, free: 3.645 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003333/0.8134, allocations: 112 kB / 0.5864 GB, free: 3.535 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001484/0.8149, allocations: 0.8492 MB / 0.5872 GB, free: 2.684 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002862/0.8177, allocations: 1.404 MB / 0.5886 GB, free: 1.277 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007922/0.8256, allocations: 7.272 MB / 0.5957 GB, free: 9.891 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00371/0.8293, allocations: 355.5 kB / 0.596 GB, free: 9.543 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007971/0.8301, allocations: 352 kB / 0.5964 GB, free: 9.199 MB / 442.8 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006301/0.8364, allocations: 3.677 MB / 0.5999 GB, free: 5.504 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009243/0.8374, allocations: 425.3 kB / 0.6004 GB, free: 5.086 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006408/0.8438, allocations: 5.043 MB / 0.6053 GB, free: 15.98 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/0.8438, allocations: 32 kB / 0.6053 GB, free: 15.95 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.8438, allocations: 8 kB / 0.6053 GB, free: 15.94 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.828e-05/0.8438, allocations: 15.94 kB / 0.6053 GB, free: 15.93 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01871/0.8625, allocations: 11.7 MB / 0.6168 GB, free: 4.152 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.8625, allocations: 11.94 kB / 0.6168 GB, free: 4.141 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001261/0.8638, allocations: 0.5149 MB / 0.6173 GB, free: 3.625 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/0.8651, allocations: 0.6883 MB / 0.6179 GB, free: 2.934 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001715/0.8653, allocations: 71.92 kB / 0.618 GB, free: 2.863 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1884/1.054, allocations: 6.424 MB / 0.6243 GB, free: 137.5 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/1.054, allocations: 6.625 kB / 0.6243 GB, free: 137.5 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.011/1.065, allocations: 7.316 MB / 0.6314 GB, free: 135 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001994/1.067, allocations: 0.7604 MB / 0.6322 GB, free: 134.8 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004026/1.067, allocations: 58.5 kB / 0.6322 GB, free: 134.7 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/1.068, allocations: 162.2 kB / 0.6324 GB, free: 134.7 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000488/1.069, allocations: 220.8 kB / 0.6326 GB, free: 134.7 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000173/1.069, allocations: 88.73 kB / 0.6327 GB, free: 134.6 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.003794/1.073, allocations: 2.666 MB / 0.6353 GB, free: 133.7 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.3e-07/1.073, allocations: 1.062 kB / 0.6353 GB, free: 133.7 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.005454/1.078, allocations: 1.55 MB / 0.6368 GB, free: 133.5 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009155/1.087, allocations: 7.995 MB / 0.6446 GB, free: 129.9 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.00807/1.095, allocations: 5.871 MB / 0.6503 GB, free: 127.6 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.095, allocations: 0 / 0.6503 GB, free: 127.6 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003031/1.098, allocations: 2.28 MB / 0.6526 GB, free: 126.7 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003765/1.102, allocations: 0.9454 MB / 0.6535 GB, free: 126.4 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07042/1.173, allocations: 54.81 MB / 0.707 GB, free: 79.15 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005075/1.178, allocations: 5.767 MB / 0.7127 GB, free: 73.34 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.003583/1.181, allocations: 1.947 MB / 0.7146 GB, free: 71.39 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002933/1.184, allocations: 3.382 MB / 0.7179 GB, free: 68.01 MB / 458.8 MB Notification: Performance of SimCode: time 2.254e-06/1.184, allocations: 4 kB / 0.7179 GB, free: 68 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3229/1.507, allocations: 119.9 MB / 0.8349 GB, free: 141.3 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/12.4, allocations: 7.047 kB / 0.8349 GB, free: 141.3 MB / 474.8 MB " [Timeout remaining time 647] (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/jenkins/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/jenkins/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: 14.391566574573517]