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.001191/0.001191, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001254/0.001254, allocations: 184.4 kB / 24.49 MB, free: 3.961 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.327/1.327, allocations: 225.7 MB / 253.3 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 47.92 kB / 371.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2142, allocations: 52.19 MB / 423.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02806/0.2422, allocations: 24.58 MB / 448 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01512/0.2574, allocations: 8.046 MB / 456 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004352/0.2617, allocations: 254.8 kB / 456.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01774/0.2795, allocations: 7.636 MB / 463.9 MB, free: 5.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008698/0.2881, allocations: 2.855 MB / 466.8 MB, free: 2.855 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005346/0.2935, allocations: 1.816 MB / 468.6 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0131/0.3066, allocations: 10.05 MB / 478.6 MB, free: 6.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02413/0.3307, allocations: 14.04 MB / 492.7 MB, free: 8.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007852/0.3386, allocations: 5.486 MB / 498.2 MB, free: 3.273 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009384/0.348, allocations: 6.12 MB / 0.4925 GB, free: 13.13 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003651/0.3516, allocations: 1.539 MB / 0.494 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005444/0.3571, allocations: 1.898 MB / 0.4958 GB, free: 9.695 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004761/0.3618, allocations: 2.993 MB / 0.4987 GB, free: 6.695 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008074/0.3699, allocations: 4.541 MB / 0.5032 GB, free: 2.137 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02438/0.3943, allocations: 20.76 MB / 0.5234 GB, free: 13.31 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.3943, allocations: 4 kB / 0.5235 GB, free: 13.31 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3943, allocations: 0 / 0.5235 GB, free: 13.31 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000433/0.3947, allocations: 0 / 0.5235 GB, free: 13.31 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.03221/0.4269, allocations: 11.98 MB / 0.5351 GB, free: 1.242 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.427, allocations: 8.031 kB / 0.5352 GB, free: 1.234 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003309/0.4273, allocations: 299.9 kB / 0.5354 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3332/0.7605, allocations: 1.535 MB / 0.5369 GB, free: 98.51 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02982/0.7903, allocations: 5.693 MB / 0.5425 GB, free: 97.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01288/0.8032, allocations: 6.366 MB / 0.5487 GB, free: 93.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006488/0.8038, allocations: 0.7061 MB / 0.5494 GB, free: 93.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003584/0.8074, allocations: 0.9368 MB / 0.5503 GB, free: 92.24 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03439/0.8418, allocations: 15.25 MB / 0.5652 GB, free: 76.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004856/0.8423, allocations: 19.94 kB / 0.5652 GB, free: 76.88 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003068/0.8453, allocations: 391.2 kB / 0.5656 GB, free: 76.51 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004521/0.8458, allocations: 0.5156 MB / 0.5661 GB, free: 75.99 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0239/0.8697, allocations: 13.78 MB / 0.5796 GB, free: 62.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06818/0.9379, allocations: 42.72 MB / 0.6213 GB, free: 19.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01183/0.9497, allocations: 7.989 MB / 0.6291 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003747/0.9534, allocations: 2.83 MB / 0.6318 GB, free: 9.492 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003316/0.9538, allocations: 79.03 kB / 0.6319 GB, free: 9.414 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.111e-05/0.9538, allocations: 69.66 kB / 0.632 GB, free: 9.336 MB / 446.1 MB Notification: Performance of pre-optimization done (n=394): time 7.344e-06/0.9538, allocations: 0 / 0.632 GB, free: 9.336 MB / 446.1 MB Notification: Performance of matching and sorting (n=477): time 0.05749/1.011, allocations: 25.32 MB / 0.6567 GB, free: 172 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.649e-05/1.011, allocations: 99.16 kB / 0.6568 GB, free: 60 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006894/1.018, allocations: 3.611 MB / 0.6603 GB, free: 12.45 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008134/1.019, allocations: 101.7 kB / 0.6604 GB, free: 12.35 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003796/1.023, allocations: 4.186 MB / 0.6645 GB, free: 8.121 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002357/1.025, allocations: 1.701 MB / 0.6662 GB, free: 6.406 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003356/1.029, allocations: 1.28 MB / 0.6674 GB, free: 5.117 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/1.029, allocations: 305.1 kB / 0.6677 GB, free: 4.816 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006108/1.035, allocations: 3.066 MB / 0.6707 GB, free: 1.746 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008862/1.044, allocations: 5.628 MB / 0.6762 GB, free: 10.95 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01538/1.059, allocations: 9.436 MB / 0.6854 GB, free: 344 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/1.059, allocations: 24 kB / 0.6854 GB, free: 320 kB / 494.1 MB Notification: Performance of matching and sorting (n=854) (initialization): time 0.02341/1.083, allocations: 10.41 MB / 0.6956 GB, free: 5.883 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.876e-05/1.083, allocations: 40.88 kB / 0.6956 GB, free: 5.844 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/1.083, allocations: 80 kB / 0.6957 GB, free: 5.766 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005361/1.088, allocations: 1.676 MB / 0.6974 GB, free: 4.082 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006007/1.094, allocations: 1.443 MB / 0.6988 GB, free: 2.637 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02587/1.12, allocations: 15.53 MB / 0.7139 GB, free: 2.852 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00543/1.126, allocations: 355.5 kB / 0.7143 GB, free: 2.504 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00156/1.127, allocations: 339.9 kB / 0.7146 GB, free: 2.172 MB / 0.5138 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 (760): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,40,65.6%), (8,40,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009007/1.136, allocations: 3.597 MB / 0.7181 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001707/1.138, allocations: 457.1 kB / 0.7186 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01866/1.156, allocations: 7.781 MB / 0.7261 GB, free: 6.297 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-05/1.157, allocations: 51.94 kB / 0.7262 GB, free: 6.246 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.266e-05/1.157, allocations: 19.94 kB / 0.7262 GB, free: 6.227 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001324/1.157, allocations: 23.91 kB / 0.7262 GB, free: 6.203 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04416/1.201, allocations: 17.64 MB / 0.7435 GB, free: 4.324 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.29e-05/1.201, allocations: 8 kB / 0.7435 GB, free: 4.316 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003793/1.205, allocations: 0.7567 MB / 0.7442 GB, free: 3.559 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004638/1.209, allocations: 1.461 MB / 0.7456 GB, free: 2.09 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009193/1.21, allocations: 99.98 kB / 0.7457 GB, free: 1.992 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2547/1.465, allocations: 13.64 MB / 0.7591 GB, free: 182.3 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/1.465, allocations: 11.38 kB / 0.7591 GB, free: 182.3 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01828/1.483, allocations: 11.26 MB / 0.7701 GB, free: 177.6 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002866/1.486, allocations: 0.9837 MB / 0.771 GB, free: 177.3 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001092/1.487, allocations: 87.28 kB / 0.7711 GB, free: 177.3 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002531/1.49, allocations: 212.2 kB / 0.7713 GB, free: 177.2 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008332/1.491, allocations: 361.1 kB / 0.7717 GB, free: 177.1 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003667/1.491, allocations: 133.5 kB / 0.7718 GB, free: 177.1 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.004067/1.495, allocations: 2.416 MB / 0.7741 GB, free: 176.2 MB / 0.5451 GB Notification: Performance of sort global known variables: time 1.8e-07/1.495, allocations: 0 / 0.7741 GB, free: 176.2 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.006698/1.502, allocations: 1.733 MB / 0.7758 GB, free: 176 MB / 0.5451 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (418): * Single equations (assignments): 416 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,38,59.4%), (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.01717/1.519, allocations: 12.01 MB / 0.7876 GB, free: 166.6 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01291/1.532, allocations: 7.92 MB / 0.7953 GB, free: 159.8 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-05/1.532, allocations: 0 / 0.7953 GB, free: 159.8 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.006703/1.539, allocations: 3.783 MB / 0.799 GB, free: 156.5 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006742/1.545, allocations: 0.9781 MB / 0.7999 GB, free: 155.7 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1007/1.646, allocations: 58.54 MB / 0.8571 GB, free: 94.46 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00723/1.653, allocations: 5.705 MB / 0.8627 GB, free: 88.71 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.004737/1.658, allocations: 1.942 MB / 0.8646 GB, free: 86.76 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004484/1.662, allocations: 3.288 MB / 0.8678 GB, free: 83.47 MB / 0.5451 GB Notification: Performance of SimCode: time 1.543e-06/1.662, allocations: 0 / 0.8678 GB, free: 83.47 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.411/2.073, allocations: 140.7 MB / 1.005 GB, free: 174.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.57/22.64, allocations: 5.891 kB / 1.005 GB, free: 174.6 MB / 0.5607 GB " [Timeout remaining time 637] (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: 25.93446737609338]