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.001486/0.001486, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001813/0.001813, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.426/1.426, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.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.001529/0.001529, allocations: 51.92 kB / 365.7 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.11, allocations: 52.14 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2535/0.3635, allocations: 28.7 MB / 446.5 MB, free: 7.801 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01668/0.3802, allocations: 8.415 MB / 454.9 MB, free: 7.695 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0066/0.3868, allocations: 215.8 kB / 455.1 MB, free: 7.695 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01849/0.4053, allocations: 8.271 MB / 463.4 MB, free: 6.488 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01026/0.4156, allocations: 2.846 MB / 466.3 MB, free: 5.238 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005939/0.4215, allocations: 1.877 MB / 468.1 MB, free: 4.363 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01335/0.4349, allocations: 9.968 MB / 478.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03246/0.4673, allocations: 16.32 MB / 494.4 MB, free: 7.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01031/0.4776, allocations: 5.377 MB / 499.8 MB, free: 1.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01218/0.4898, allocations: 6.084 MB / 0.494 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004857/0.4947, allocations: 1.547 MB / 0.4955 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006697/0.5014, allocations: 1.899 MB / 0.4974 GB, free: 8.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005172/0.5065, allocations: 2.991 MB / 0.5003 GB, free: 5.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01163/0.5182, allocations: 5.852 MB / 0.506 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02874/0.5469, allocations: 20.66 MB / 0.5262 GB, free: 11.51 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.5469, allocations: 0 / 0.5262 GB, free: 11.51 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.5469, allocations: 0 / 0.5262 GB, free: 11.51 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006217/0.5475, allocations: 0 / 0.5262 GB, free: 11.51 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03795/0.5855, allocations: 12.05 MB / 0.538 GB, free: 15.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.5856, allocations: 15.89 kB / 0.538 GB, free: 15.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006054/0.5916, allocations: 1.542 MB / 0.5395 GB, free: 13.87 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03177/0.6234, allocations: 5.677 MB / 0.545 GB, free: 8.246 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01775/0.6411, allocations: 6.318 MB / 0.5512 GB, free: 1.914 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009866/0.6421, allocations: 0.7012 MB / 0.5519 GB, free: 1.223 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004263/0.6464, allocations: 0.934 MB / 0.5528 GB, free: 304 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04303/0.6894, allocations: 15.08 MB / 0.5675 GB, free: 1.16 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005455/0.6899, allocations: 11.95 kB / 0.5676 GB, free: 1.148 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003586/0.6935, allocations: 402 kB / 0.5679 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006549/0.6942, allocations: 0.5155 MB / 0.5684 GB, free: 252 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03336/0.7275, allocations: 13.75 MB / 0.5819 GB, free: 2.469 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09539/0.8229, allocations: 47.27 MB / 0.628 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2854/1.108, allocations: 28.2 MB / 0.6556 GB, free: 127.4 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005626/1.114, allocations: 2.799 MB / 0.6583 GB, free: 127.4 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004081/1.114, allocations: 245.2 kB / 0.6585 GB, free: 127.2 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/1.114, allocations: 70.7 kB / 0.6586 GB, free: 127.1 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=384): time 6.031e-06/1.114, allocations: 0 / 0.6586 GB, free: 127.1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=392): time 0.03034/1.145, allocations: 14.87 MB / 0.6731 GB, free: 121.7 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.805e-05/1.145, allocations: 96.08 kB / 0.6732 GB, free: 121.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005687/1.151, allocations: 3.606 MB / 0.6767 GB, free: 120.3 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006114/1.151, allocations: 85.52 kB / 0.6768 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002392/1.154, allocations: 4.199 MB / 0.6809 GB, free: 117.1 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001397/1.155, allocations: 1.413 MB / 0.6823 GB, free: 116 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001588/1.156, allocations: 1.167 MB / 0.6834 GB, free: 115.4 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.932e-05/1.157, allocations: 305.1 kB / 0.6837 GB, free: 115.1 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003353/1.16, allocations: 2.592 MB / 0.6863 GB, free: 114.1 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004275/1.164, allocations: 5.089 MB / 0.6912 GB, free: 109.9 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008772/1.173, allocations: 8.339 MB / 0.6994 GB, free: 103.9 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.828e-05/1.173, allocations: 24 kB / 0.6994 GB, free: 103.9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01328/1.186, allocations: 8.627 MB / 0.7078 GB, free: 100.5 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.501e-05/1.186, allocations: 43 kB / 0.7079 GB, free: 100.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001343/1.187, allocations: 86.41 kB / 0.708 GB, free: 100.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/1.189, allocations: 0.8525 MB / 0.7088 GB, free: 100.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004104/1.193, allocations: 1.37 MB / 0.7101 GB, free: 100.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008892/1.202, allocations: 7.675 MB / 0.7176 GB, free: 94.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004955/1.206, allocations: 335.5 kB / 0.7179 GB, free: 93.78 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007645/1.207, allocations: 312 kB / 0.7182 GB, free: 93.48 MB / 0.5137 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.006458/1.214, allocations: 3.509 MB / 0.7217 GB, free: 89.95 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00131/1.215, allocations: 425.3 kB / 0.7221 GB, free: 89.54 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00821/1.223, allocations: 5.966 MB / 0.7279 GB, free: 83.54 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.393e-05/1.223, allocations: 40 kB / 0.7279 GB, free: 83.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/1.223, allocations: 14.3 kB / 0.7279 GB, free: 83.49 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-05/1.223, allocations: 19.92 kB / 0.728 GB, free: 83.47 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02305/1.246, allocations: 14.93 MB / 0.7425 GB, free: 68.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.6e-05/1.246, allocations: 4 kB / 0.7426 GB, free: 68.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00253/1.249, allocations: 0.6982 MB / 0.7432 GB, free: 67.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/1.251, allocations: 0.717 MB / 0.7439 GB, free: 67.08 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003163/1.251, allocations: 83.98 kB / 0.744 GB, free: 67 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007096/1.258, allocations: 6.703 MB / 0.7506 GB, free: 60.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/1.258, allocations: 4 kB / 0.7506 GB, free: 60.15 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01115/1.269, allocations: 8.756 MB / 0.7591 GB, free: 51.28 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002753/1.272, allocations: 0.9003 MB / 0.76 GB, free: 50.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001006/1.273, allocations: 80.05 kB / 0.7601 GB, free: 50.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002221/1.275, allocations: 188.8 kB / 0.7602 GB, free: 50.09 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004868/1.276, allocations: 262.7 kB / 0.7605 GB, free: 49.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002082/1.276, allocations: 124 kB / 0.7606 GB, free: 49.71 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003532/1.279, allocations: 2.409 MB / 0.763 GB, free: 47.32 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/1.279, allocations: 0 / 0.763 GB, free: 47.32 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006403/1.286, allocations: 1.551 MB / 0.7645 GB, free: 45.77 MB / 0.5137 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.01134/1.297, allocations: 9.473 MB / 0.7737 GB, free: 36.16 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008245/1.305, allocations: 6.271 MB / 0.7799 GB, free: 29.89 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/1.305, allocations: 1.875 kB / 0.7799 GB, free: 29.89 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003642/1.309, allocations: 2.732 MB / 0.7825 GB, free: 27.15 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004166/1.313, allocations: 0.9604 MB / 0.7835 GB, free: 26.22 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08587/1.399, allocations: 52.62 MB / 0.8349 GB, free: 2.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2385/1.638, allocations: 5.968 MB / 0.8407 GB, free: 186.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005887/1.644, allocations: 1.875 MB / 0.8425 GB, free: 186.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006427/1.65, allocations: 3.217 MB / 0.8457 GB, free: 186.8 MB / 0.545 GB Notification: Performance of SimCode: time 2.114e-06/1.65, allocations: 0 / 0.8457 GB, free: 186.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1735/1.823, allocations: 120.8 MB / 0.9636 GB, free: 93.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.6/21.43, allocations: 15.67 kB / 0.9636 GB, free: 93.73 MB / 0.545 GB " [Timeout remaining time 638] (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_2/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_2/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: 24.68190639326349]