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.002116/0.002116, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.001234/0.001234, allocations: 174 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.8592/0.8592, allocations: 177.1 MB / 204.2 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 2.665e-06/2.665e-06, allocations: 4 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/2.239e-05, allocations: 6.219 kB / 324.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01765/0.01767, allocations: 24.66 MB / 349.3 MB, free: 7.121 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.03032, allocations: 8.178 MB / 357.5 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003511/0.03383, allocations: 254.7 kB / 357.7 MB, free: 14.67 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008183/0.04202, allocations: 8.053 MB / 365.8 MB, free: 6.594 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005078/0.04709, allocations: 2.897 MB / 368.7 MB, free: 3.684 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002535/0.04963, allocations: 1.871 MB / 370.5 MB, free: 1.816 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007701/0.05733, allocations: 10.43 MB / 381 MB, free: 7.348 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01425/0.07158, allocations: 13.91 MB / 394.9 MB, free: 9.309 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007144/0.07872, allocations: 8.117 MB / 403 MB, free: 1.18 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004652/0.08337, allocations: 5.266 MB / 408.2 MB, free: 11.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001429/0.0848, allocations: 1.543 MB / 409.8 MB, free: 10.36 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.08679, allocations: 1.917 MB / 411.7 MB, free: 8.441 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001537/0.08833, allocations: 3.043 MB / 414.7 MB, free: 5.391 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003211/0.09154, allocations: 3.91 MB / 418.7 MB, free: 1.473 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0177/0.1092, allocations: 20.95 MB / 439.6 MB, free: 12.47 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.1092, allocations: 0 / 439.6 MB, free: 12.47 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1092, allocations: 4 kB / 439.6 MB, free: 12.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005208/0.1098, allocations: 0 / 439.6 MB, free: 12.46 MB / 410.7 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.02374/0.1335, allocations: 11.91 MB / 451.5 MB, free: 472 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.1336, allocations: 8.031 kB / 451.5 MB, free: 464 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2716/0.4052, allocations: 1.54 MB / 453.1 MB, free: 104.3 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01658/0.4217, allocations: 5.61 MB / 458.7 MB, free: 103.4 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009022/0.4308, allocations: 6.379 MB / 465.1 MB, free: 98.48 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003203/0.4311, allocations: 0.7097 MB / 465.8 MB, free: 97.79 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002527/0.4336, allocations: 0.9252 MB / 466.7 MB, free: 96.87 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02292/0.4565, allocations: 15.26 MB / 482 MB, free: 81.52 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002008/0.4567, allocations: 15.89 kB / 482 MB, free: 81.5 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001295/0.458, allocations: 387.7 kB / 482.3 MB, free: 81.13 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002631/0.4583, allocations: 0.5233 MB / 482.9 MB, free: 80.61 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01975/0.478, allocations: 13.73 MB / 496.6 MB, free: 66.85 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05127/0.5293, allocations: 42.75 MB / 0.5267 GB, free: 23.75 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007548/0.5369, allocations: 7.966 MB / 0.5345 GB, free: 17.02 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002487/0.5393, allocations: 2.799 MB / 0.5372 GB, free: 14.22 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002073/0.5396, allocations: 90.94 kB / 0.5373 GB, free: 14.13 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.5396, allocations: 85.45 kB / 0.5374 GB, free: 14.04 MB / 410.8 MB Notification: Performance of pre-optimization done (n=384): time 6.081e-06/0.5396, allocations: 0 / 0.5374 GB, free: 14.04 MB / 410.8 MB Notification: Performance of matching and sorting (n=392): time 0.01778/0.5574, allocations: 14.7 MB / 0.5518 GB, free: 15.46 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.5574, allocations: 98.48 kB / 0.5518 GB, free: 15.36 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003867/0.5613, allocations: 3.734 MB / 0.5555 GB, free: 11.62 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002868/0.5616, allocations: 93.64 kB / 0.5556 GB, free: 11.53 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002245/0.5638, allocations: 4.174 MB / 0.5597 GB, free: 7.344 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001034/0.5649, allocations: 1.385 MB / 0.561 GB, free: 5.977 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001272/0.5661, allocations: 1.168 MB / 0.5622 GB, free: 4.797 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 8.095e-05/0.5662, allocations: 305.1 kB / 0.5624 GB, free: 4.496 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003038/0.5693, allocations: 2.592 MB / 0.565 GB, free: 1.895 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004282/0.5735, allocations: 5.108 MB / 0.57 GB, free: 11.61 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007687/0.5812, allocations: 8.348 MB / 0.5781 GB, free: 2.07 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-05/0.5813, allocations: 24 kB / 0.5781 GB, free: 2.047 MB / 442.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0105/0.5918, allocations: 8.634 MB / 0.5866 GB, free: 9.383 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.659e-05/0.5918, allocations: 40 kB / 0.5866 GB, free: 9.344 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.811e-05/0.5919, allocations: 88.06 kB / 0.5867 GB, free: 9.258 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001387/0.5933, allocations: 0.8394 MB / 0.5875 GB, free: 8.418 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002531/0.5958, allocations: 1.369 MB / 0.5888 GB, free: 7.047 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007358/0.6032, allocations: 7.389 MB / 0.5961 GB, free: 15.54 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003115/0.6063, allocations: 339.4 kB / 0.5964 GB, free: 15.21 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/0.6074, allocations: 308 kB / 0.5967 GB, free: 14.91 MB / 474.8 MB 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.004806/0.6122, allocations: 3.509 MB / 0.6001 GB, free: 11.38 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008083/0.613, allocations: 429.2 kB / 0.6005 GB, free: 10.96 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007422/0.6204, allocations: 5.945 MB / 0.6063 GB, free: 4.98 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-05/0.6204, allocations: 40 kB / 0.6064 GB, free: 4.941 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.6204, allocations: 8 kB / 0.6064 GB, free: 4.934 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-05/0.6205, allocations: 23.86 kB / 0.6064 GB, free: 4.91 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01993/0.6404, allocations: 14.33 MB / 0.6204 GB, free: 6.531 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.6404, allocations: 4 kB / 0.6204 GB, free: 6.527 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00152/0.6419, allocations: 0.6982 MB / 0.6211 GB, free: 5.828 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00124/0.6431, allocations: 0.6939 MB / 0.6218 GB, free: 5.133 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002015/0.6434, allocations: 87.97 kB / 0.6218 GB, free: 5.047 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.179/0.8224, allocations: 6.428 MB / 0.6281 GB, free: 161 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.8224, allocations: 9.672 kB / 0.6281 GB, free: 161 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009598/0.832, allocations: 8.742 MB / 0.6367 GB, free: 158.8 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001686/0.8336, allocations: 0.8527 MB / 0.6375 GB, free: 158.6 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003219/0.834, allocations: 73.66 kB / 0.6376 GB, free: 158.6 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009837/0.835, allocations: 184.6 kB / 0.6377 GB, free: 158.5 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003656/0.8353, allocations: 291.7 kB / 0.638 GB, free: 158.5 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.8355, allocations: 120.8 kB / 0.6381 GB, free: 158.4 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002433/0.8379, allocations: 2.402 MB / 0.6405 GB, free: 157.6 MB / 490.8 MB Notification: Performance of sort global known variables: time 7.1e-08/0.8379, allocations: 0 / 0.6405 GB, free: 157.6 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.003652/0.8415, allocations: 1.553 MB / 0.642 GB, free: 157.4 MB / 490.8 MB 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.007988/0.8495, allocations: 9.468 MB / 0.6512 GB, free: 153.2 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.006868/0.8564, allocations: 6.261 MB / 0.6574 GB, free: 148 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.8564, allocations: 0 / 0.6574 GB, free: 148 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002651/0.8591, allocations: 2.734 MB / 0.66 GB, free: 145.7 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002952/0.862, allocations: 0.9645 MB / 0.661 GB, free: 144.9 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05915/0.9212, allocations: 52.61 MB / 0.7123 GB, free: 91.6 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004033/0.9252, allocations: 5.525 MB / 0.7177 GB, free: 86.02 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.003025/0.9282, allocations: 1.881 MB / 0.7196 GB, free: 84.14 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002693/0.9309, allocations: 3.234 MB / 0.7227 GB, free: 80.9 MB / 490.8 MB Notification: Performance of SimCode: time 1.674e-06/0.9309, allocations: 0 / 0.7227 GB, free: 80.9 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2664/1.197, allocations: 122.9 MB / 0.8428 GB, free: 160.9 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/11.33, allocations: 8.062 kB / 0.8428 GB, free: 160.9 MB / 0.4949 GB " [Timeout remaining time 649] (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/jenkins/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/jenkins/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: 13.302817422896624]