Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001345/0.001345, allocations: 116.7 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 213.6 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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.002085/0.002085, allocations: 63.89 kB / 377.8 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2592, allocations: 53.41 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03362/0.2928, allocations: 28.8 MB / 460 MB, free: 9.742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01841/0.3112, allocations: 8.536 MB / 468.6 MB, free: 1.176 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005293/0.3165, allocations: 250.8 kB / 468.8 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02007/0.3365, allocations: 8.299 MB / 477.1 MB, free: 8.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.3468, allocations: 2.914 MB / 480 MB, free: 5.688 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006276/0.3531, allocations: 1.934 MB / 482 MB, free: 3.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01588/0.369, allocations: 10.11 MB / 492.1 MB, free: 9.621 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02715/0.3961, allocations: 14.04 MB / 0.4942 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01001/0.4061, allocations: 5.482 MB / 0.4996 GB, free: 5.945 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01092/0.4171, allocations: 6.155 MB / 0.5056 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004154/0.4212, allocations: 1.543 MB / 0.5071 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005761/0.427, allocations: 1.929 MB / 0.509 GB, free: 12.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005047/0.432, allocations: 2.989 MB / 0.5119 GB, free: 9.301 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01115/0.4432, allocations: 5.848 MB / 0.5176 GB, free: 3.43 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4812/0.9243, allocations: 20.69 MB / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.9243, allocations: 0.5312 kB / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.9243, allocations: 0 / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000663/0.925, allocations: 1.219 kB / 0.5378 GB, free: 37.98 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.04109/0.9661, allocations: 12.02 MB / 0.5496 GB, free: 34.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.9661, allocations: 12.36 kB / 0.5496 GB, free: 34.66 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006877/0.973, allocations: 1.548 MB / 0.5511 GB, free: 34.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03104/1.004, allocations: 5.591 MB / 0.5566 GB, free: 33.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01543/1.019, allocations: 6.384 MB / 0.5628 GB, free: 33.08 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008147/1.02, allocations: 0.7011 MB / 0.5635 GB, free: 33.06 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004696/1.025, allocations: 0.9329 MB / 0.5644 GB, free: 33.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0397/1.065, allocations: 15.11 MB / 0.5791 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004018/1.065, allocations: 15.94 kB / 0.5792 GB, free: 23.41 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003055/1.068, allocations: 394.5 kB / 0.5795 GB, free: 23.04 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004272/1.069, allocations: 0.5156 MB / 0.58 GB, free: 22.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02791/1.097, allocations: 13.78 MB / 0.5935 GB, free: 8.715 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09288/1.189, allocations: 46.6 MB / 0.639 GB, free: 9.914 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01582/1.205, allocations: 8.061 MB / 0.6469 GB, free: 3.156 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005559/1.211, allocations: 2.797 MB / 0.6496 GB, free: 368 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004997/1.211, allocations: 115 kB / 0.6497 GB, free: 272 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.259e-05/1.211, allocations: 76.95 kB / 0.6498 GB, free: 188 kB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 5.921e-06/1.211, allocations: 4 kB / 0.6498 GB, free: 184 kB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03302/1.244, allocations: 14.75 MB / 0.6642 GB, free: 1.43 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.56e-05/1.244, allocations: 94.48 kB / 0.6643 GB, free: 1.324 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005868/1.25, allocations: 3.611 MB / 0.6678 GB, free: 13.72 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006664/1.251, allocations: 89.7 kB / 0.6679 GB, free: 13.62 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003258/1.254, allocations: 4.195 MB / 0.672 GB, free: 9.422 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00165/1.256, allocations: 1.405 MB / 0.6734 GB, free: 8.035 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001878/1.258, allocations: 1.172 MB / 0.6745 GB, free: 6.852 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001291/1.258, allocations: 305.1 kB / 0.6748 GB, free: 6.551 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004188/1.262, allocations: 2.599 MB / 0.6773 GB, free: 3.949 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006538/1.269, allocations: 5.091 MB / 0.6823 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/1.28, allocations: 8.352 MB / 0.6905 GB, free: 4.531 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.804e-05/1.28, allocations: 24 kB / 0.6905 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01611/1.296, allocations: 8.654 MB / 0.699 GB, free: 12.34 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.594e-05/1.296, allocations: 42.81 kB / 0.699 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000132/1.296, allocations: 80 kB / 0.6991 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002376/1.299, allocations: 0.8532 MB / 0.6999 GB, free: 11.37 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004912/1.304, allocations: 1.371 MB / 0.7012 GB, free: 10.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/1.315, allocations: 7.592 MB / 0.7087 GB, free: 2.441 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004247/1.32, allocations: 331.4 kB / 0.709 GB, free: 2.117 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009966/1.32, allocations: 308 kB / 0.7093 GB, free: 1.816 MB / 0.545 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.006553/1.327, allocations: 3.518 MB / 0.7127 GB, free: 14.39 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00114/1.328, allocations: 425.3 kB / 0.7131 GB, free: 13.97 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01163/1.34, allocations: 5.955 MB / 0.7189 GB, free: 8.004 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.281e-05/1.34, allocations: 44 kB / 0.719 GB, free: 7.961 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.978e-05/1.34, allocations: 10.53 kB / 0.719 GB, free: 7.953 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.265e-05/1.34, allocations: 19.92 kB / 0.719 GB, free: 7.934 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.034/1.374, allocations: 14.97 MB / 0.7336 GB, free: 9.031 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.07e-05/1.374, allocations: 8.094 kB / 0.7336 GB, free: 9.023 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002869/1.377, allocations: 0.6994 MB / 0.7343 GB, free: 8.363 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002134/1.379, allocations: 0.717 MB / 0.735 GB, free: 7.645 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004911/1.379, allocations: 93.77 kB / 0.7351 GB, free: 7.555 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01008/1.39, allocations: 6.608 MB / 0.7415 GB, free: 0.8594 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.315e-06/1.39, allocations: 7.656 kB / 0.7416 GB, free: 0.8555 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01628/1.406, allocations: 8.768 MB / 0.7501 GB, free: 7.992 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003352/1.409, allocations: 0.8602 MB / 0.751 GB, free: 7.133 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001092/1.41, allocations: 75.98 kB / 0.751 GB, free: 7.059 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002369/1.413, allocations: 175.8 kB / 0.7512 GB, free: 6.887 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006109/1.413, allocations: 286.3 kB / 0.7515 GB, free: 6.609 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/1.414, allocations: 120 kB / 0.7516 GB, free: 6.492 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004657/1.418, allocations: 2.416 MB / 0.7539 GB, free: 4.09 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/1.418, allocations: 0 / 0.7539 GB, free: 4.09 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00874/1.427, allocations: 1.551 MB / 0.7555 GB, free: 2.539 MB / 0.5919 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.2981/1.725, allocations: 9.496 MB / 0.7647 GB, free: 225.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.008895/1.734, allocations: 6.283 MB / 0.7709 GB, free: 222.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/1.734, allocations: 0 / 0.7709 GB, free: 222.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004042/1.738, allocations: 2.742 MB / 0.7735 GB, free: 221.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004682/1.743, allocations: 0.9522 MB / 0.7745 GB, free: 221.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07154/1.814, allocations: 52.71 MB / 0.826 GB, free: 180 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00568/1.82, allocations: 5.975 MB / 0.8318 GB, free: 174 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004036/1.824, allocations: 1.885 MB / 0.8336 GB, free: 172.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003733/1.828, allocations: 3.234 MB / 0.8368 GB, free: 168.9 MB / 0.5919 GB Notification: Performance of SimCode: time 9.22e-07/1.828, allocations: 0 / 0.8368 GB, free: 168.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1641/1.992, allocations: 126.3 MB / 0.9601 GB, free: 43.03 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.06/23.05, allocations: 15.5 kB / 0.9601 GB, free: 43.02 MB / 0.5919 GB " [Timeout remaining time 637] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.277861102018505]