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.001354/0.001354, allocations: 112 kB / 20.43 MB, free: 1.309 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.00156/0.00156, allocations: 189.3 kB / 23.72 MB, free: 4.559 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.361/1.361, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_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_0_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.001734/0.001734, allocations: 43.92 kB / 370.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2689, allocations: 52.2 MB / 422.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03398/0.3029, allocations: 28.77 MB / 451.4 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01932/0.3222, allocations: 8.435 MB / 459.9 MB, free: 9.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0063/0.3285, allocations: 250.8 kB / 460.1 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02071/0.3492, allocations: 8.304 MB / 468.4 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01051/0.3597, allocations: 2.914 MB / 471.3 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006128/0.3659, allocations: 1.901 MB / 473.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01416/0.38, allocations: 10.06 MB / 483.3 MB, free: 1.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02558/0.4056, allocations: 14.04 MB / 497.3 MB, free: 3.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009903/0.4155, allocations: 5.494 MB / 0.491 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01195/0.4275, allocations: 6.109 MB / 0.497 GB, free: 7.934 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005709/0.4332, allocations: 1.539 MB / 0.4985 GB, free: 6.395 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006911/0.4401, allocations: 1.906 MB / 0.5004 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005771/0.4458, allocations: 2.989 MB / 0.5033 GB, free: 1.492 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01177/0.4576, allocations: 5.845 MB / 0.509 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02841/0.486, allocations: 20.67 MB / 0.5292 GB, free: 6.887 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.486, allocations: 0 / 0.5292 GB, free: 6.887 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.486, allocations: 0 / 0.5292 GB, free: 6.887 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005318/0.4866, allocations: 0 / 0.5292 GB, free: 6.887 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.2743/0.7609, allocations: 11.98 MB / 0.5409 GB, free: 94.42 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.62e-05/0.7609, allocations: 11.88 kB / 0.5409 GB, free: 94.42 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005514/0.7664, allocations: 1.539 MB / 0.5424 GB, free: 93.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0292/0.7956, allocations: 5.673 MB / 0.5479 GB, free: 91.54 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01383/0.8095, allocations: 6.37 MB / 0.5542 GB, free: 87.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007075/0.8102, allocations: 0.7062 MB / 0.5549 GB, free: 87.29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004347/0.8145, allocations: 0.9248 MB / 0.5558 GB, free: 86.38 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04634/0.8609, allocations: 15.08 MB / 0.5705 GB, free: 71.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007857/0.8616, allocations: 31.78 kB / 0.5705 GB, free: 71.22 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004628/0.8663, allocations: 387.4 kB / 0.5709 GB, free: 70.85 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005159/0.8668, allocations: 0.5155 MB / 0.5714 GB, free: 70.33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02784/0.8946, allocations: 13.75 MB / 0.5848 GB, free: 56.55 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07726/0.9719, allocations: 46.55 MB / 0.6303 GB, free: 9.617 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01299/0.9849, allocations: 8.041 MB / 0.6381 GB, free: 2.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004641/0.9895, allocations: 2.805 MB / 0.6409 GB, free: 8 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000599/0.9901, allocations: 89.19 kB / 0.6409 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001183/0.9902, allocations: 69.58 kB / 0.641 GB, free: 15.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 1.101e-05/0.9903, allocations: 0 / 0.641 GB, free: 15.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03511/1.025, allocations: 14.71 MB / 0.6554 GB, free: 1.195 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.256e-05/1.025, allocations: 94.42 kB / 0.6555 GB, free: 1.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007069/1.033, allocations: 3.607 MB / 0.659 GB, free: 13.49 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005404/1.033, allocations: 89.7 kB / 0.6591 GB, free: 13.39 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003422/1.036, allocations: 4.188 MB / 0.6632 GB, free: 9.168 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001757/1.038, allocations: 1.422 MB / 0.6646 GB, free: 7.734 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002732/1.041, allocations: 1.164 MB / 0.6657 GB, free: 6.559 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/1.041, allocations: 301.1 kB / 0.666 GB, free: 6.262 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004702/1.046, allocations: 2.592 MB / 0.6685 GB, free: 3.664 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007092/1.053, allocations: 5.087 MB / 0.6735 GB, free: 13.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0134/1.066, allocations: 8.337 MB / 0.6816 GB, free: 3.879 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-05/1.066, allocations: 24 kB / 0.6816 GB, free: 3.855 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01993/1.086, allocations: 8.65 MB / 0.6901 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/1.086, allocations: 40 kB / 0.6901 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001962/1.087, allocations: 80 kB / 0.6902 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002711/1.089, allocations: 0.8499 MB / 0.691 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005386/1.095, allocations: 1.365 MB / 0.6924 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01314/1.108, allocations: 7.579 MB / 0.6998 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004293/1.112, allocations: 327.5 kB / 0.7001 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001141/1.113, allocations: 304 kB / 0.7004 GB, free: 0.5195 MB / 0.4981 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.007717/1.121, allocations: 3.515 MB / 0.7038 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001447/1.122, allocations: 421.3 kB / 0.7042 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01367/1.136, allocations: 5.972 MB / 0.71 GB, free: 6.562 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.464e-05/1.136, allocations: 43.98 kB / 0.7101 GB, free: 6.52 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-05/1.136, allocations: 8 kB / 0.7101 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-05/1.136, allocations: 19.92 kB / 0.7101 GB, free: 6.492 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03584/1.172, allocations: 14.95 MB / 0.7247 GB, free: 7.398 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-05/1.172, allocations: 4 kB / 0.7247 GB, free: 7.395 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003176/1.175, allocations: 0.6865 MB / 0.7254 GB, free: 6.707 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002433/1.178, allocations: 0.7209 MB / 0.7261 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000662/1.178, allocations: 83.98 kB / 0.7262 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/1.19, allocations: 6.61 MB / 0.7326 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.184e-05/1.19, allocations: 7.938 kB / 0.7326 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01815/1.208, allocations: 8.749 MB / 0.7412 GB, free: 6.289 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003267/1.211, allocations: 0.8407 MB / 0.742 GB, free: 5.445 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001474/1.212, allocations: 83.91 kB / 0.7421 GB, free: 5.363 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003078/1.215, allocations: 191.8 kB / 0.7423 GB, free: 5.176 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001012/1.217, allocations: 282.5 kB / 0.7425 GB, free: 4.898 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000603/1.217, allocations: 112 kB / 0.7426 GB, free: 4.789 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005699/1.223, allocations: 2.415 MB / 0.745 GB, free: 2.387 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.11e-07/1.223, allocations: 0 / 0.745 GB, free: 2.387 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007972/1.231, allocations: 1.543 MB / 0.7465 GB, free: 0.8438 MB / 0.545 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.4977/1.728, allocations: 9.472 MB / 0.7557 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01045/1.739, allocations: 6.274 MB / 0.7619 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/1.739, allocations: 3.625 kB / 0.7619 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00495/1.744, allocations: 2.726 MB / 0.7645 GB, free: 179.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006562/1.75, allocations: 0.9561 MB / 0.7655 GB, free: 179.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1005/1.851, allocations: 52.76 MB / 0.817 GB, free: 135.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01009/1.861, allocations: 5.975 MB / 0.8228 GB, free: 129.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005602/1.867, allocations: 1.881 MB / 0.8247 GB, free: 127.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005847/1.872, allocations: 3.217 MB / 0.8278 GB, free: 124.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.332e-06/1.872, allocations: 0 / 0.8278 GB, free: 124.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1903/2.063, allocations: 126 MB / 0.9508 GB, free: 14.62 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.13/24.19, allocations: 6.109 kB / 0.9509 GB, free: 14.62 MB / 0.5607 GB " [Timeout remaining time 636] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_0_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_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.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.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 27.33550664805807]