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.00156/0.00156, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 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.001768/0.001768, allocations: 211.8 kB / 24.51 MB, free: 3.918 MB / 14.72 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 1.432/1.432, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 43.92 kB / 378.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2504, allocations: 53.37 MB / 431.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02888/0.2793, allocations: 24.61 MB / 456.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0179/0.2972, allocations: 8.147 MB / 464.7 MB, free: 5.723 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005635/0.3028, allocations: 250.8 kB / 464.9 MB, free: 5.477 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01939/0.3222, allocations: 7.638 MB / 472.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008912/0.3311, allocations: 2.851 MB / 475.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005107/0.3362, allocations: 1.85 MB / 477.3 MB, free: 9.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01238/0.3486, allocations: 10.09 MB / 487.3 MB, free: 14.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02261/0.3712, allocations: 14.04 MB / 0.4896 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008096/0.3793, allocations: 5.506 MB / 0.495 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009693/0.389, allocations: 6.144 MB / 0.501 GB, free: 5.125 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003745/0.3928, allocations: 1.547 MB / 0.5025 GB, free: 3.578 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005302/0.3981, allocations: 1.914 MB / 0.5044 GB, free: 1.664 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003959/0.402, allocations: 2.989 MB / 0.5073 GB, free: 14.67 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008745/0.4108, allocations: 4.553 MB / 0.5118 GB, free: 10.1 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02551/0.4363, allocations: 20.78 MB / 0.5321 GB, free: 5.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.4363, allocations: 0 / 0.5321 GB, free: 5.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4363, allocations: 0 / 0.5321 GB, free: 5.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005392/0.4368, allocations: 4 kB / 0.5321 GB, free: 5.246 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.378/0.8148, allocations: 12.01 MB / 0.5438 GB, free: 91.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.8148, allocations: 14.08 kB / 0.5438 GB, free: 91.29 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004312/0.8153, allocations: 287.8 kB / 0.5441 GB, free: 91.24 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00581/0.8211, allocations: 1.552 MB / 0.5456 GB, free: 90.3 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02795/0.849, allocations: 5.598 MB / 0.5511 GB, free: 85.39 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.8611, allocations: 6.392 MB / 0.5573 GB, free: 79.38 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005611/0.8616, allocations: 0.71 MB / 0.558 GB, free: 78.68 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003065/0.8647, allocations: 0.9252 MB / 0.5589 GB, free: 77.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03492/0.8996, allocations: 15.28 MB / 0.5738 GB, free: 62.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005468/0.9001, allocations: 23.84 kB / 0.5738 GB, free: 62.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003085/0.9032, allocations: 392.7 kB / 0.5742 GB, free: 62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004439/0.9037, allocations: 0.5195 MB / 0.5747 GB, free: 61.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02426/0.9279, allocations: 13.8 MB / 0.5882 GB, free: 47.66 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06732/0.9952, allocations: 42.77 MB / 0.63 GB, free: 4.484 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01343/1.009, allocations: 8.027 MB / 0.6378 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005112/1.014, allocations: 2.823 MB / 0.6406 GB, free: 10.86 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004584/1.014, allocations: 95.02 kB / 0.6406 GB, free: 10.76 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.599e-05/1.014, allocations: 77.66 kB / 0.6407 GB, free: 10.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=394): time 6.863e-06/1.014, allocations: 0 / 0.6407 GB, free: 10.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=477): time 0.05978/1.074, allocations: 25.38 MB / 0.6655 GB, free: 1.359 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.161e-05/1.074, allocations: 99.16 kB / 0.6656 GB, free: 1.25 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005718/1.08, allocations: 3.623 MB / 0.6691 GB, free: 13.63 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000679/1.081, allocations: 101.7 kB / 0.6692 GB, free: 13.53 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003285/1.084, allocations: 4.189 MB / 0.6733 GB, free: 9.297 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002088/1.086, allocations: 1.701 MB / 0.675 GB, free: 7.582 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002382/1.088, allocations: 1.291 MB / 0.6762 GB, free: 6.281 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/1.088, allocations: 301.1 kB / 0.6765 GB, free: 5.984 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005099/1.094, allocations: 3.07 MB / 0.6795 GB, free: 2.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007648/1.101, allocations: 5.632 MB / 0.685 GB, free: 12.1 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01416/1.115, allocations: 9.444 MB / 0.6943 GB, free: 1.484 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000103/1.115, allocations: 32 kB / 0.6943 GB, free: 1.453 MB / 0.4982 GB Notification: Performance of matching and sorting (n=854) (initialization): time 0.02049/1.136, allocations: 10.43 MB / 0.7045 GB, free: 7.008 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.07e-05/1.136, allocations: 40 kB / 0.7045 GB, free: 6.969 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/1.136, allocations: 83.98 kB / 0.7046 GB, free: 6.887 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004818/1.141, allocations: 1.672 MB / 0.7062 GB, free: 5.207 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005337/1.146, allocations: 1.447 MB / 0.7076 GB, free: 3.758 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02319/1.17, allocations: 15.55 MB / 0.7228 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/1.174, allocations: 351.5 kB / 0.7231 GB, free: 3.617 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009385/1.175, allocations: 343.9 kB / 0.7235 GB, free: 3.281 MB / 0.5294 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.006144/1.181, allocations: 3.595 MB / 0.727 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.182, allocations: 457.1 kB / 0.7274 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01506/1.197, allocations: 7.785 MB / 0.735 GB, free: 7.402 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-05/1.197, allocations: 51.94 kB / 0.7351 GB, free: 7.352 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.412e-05/1.197, allocations: 12 kB / 0.7351 GB, free: 7.34 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.788e-05/1.197, allocations: 23.91 kB / 0.7351 GB, free: 7.316 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2229/1.42, allocations: 17.66 MB / 0.7523 GB, free: 179.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.134e-05/1.42, allocations: 10.55 kB / 0.7524 GB, free: 179.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003156/1.423, allocations: 0.7656 MB / 0.7531 GB, free: 179.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003857/1.427, allocations: 1.451 MB / 0.7545 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007091/1.428, allocations: 107 kB / 0.7546 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/1.443, allocations: 13.64 MB / 0.7679 GB, free: 171.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/1.443, allocations: 7.875 kB / 0.768 GB, free: 171.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01482/1.458, allocations: 11.29 MB / 0.779 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/1.461, allocations: 1 MB / 0.78 GB, free: 162.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009364/1.462, allocations: 92.17 kB / 0.78 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002489/1.464, allocations: 204.2 kB / 0.7802 GB, free: 162.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007394/1.465, allocations: 356.1 kB / 0.7806 GB, free: 162.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003105/1.465, allocations: 140 kB / 0.7807 GB, free: 162.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003499/1.469, allocations: 2.414 MB / 0.7831 GB, free: 160.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/1.469, allocations: 0 / 0.7831 GB, free: 160.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006296/1.475, allocations: 1.742 MB / 0.7848 GB, free: 158.6 MB / 0.545 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.01582/1.491, allocations: 12.04 MB / 0.7965 GB, free: 147.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01204/1.503, allocations: 7.923 MB / 0.8043 GB, free: 139.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.552e-05/1.503, allocations: 0 / 0.8043 GB, free: 139.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006696/1.509, allocations: 3.799 MB / 0.808 GB, free: 135.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00731/1.517, allocations: 0.9908 MB / 0.8089 GB, free: 134.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08797/1.605, allocations: 58.49 MB / 0.8661 GB, free: 72.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005797/1.61, allocations: 5.699 MB / 0.8716 GB, free: 67.21 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0042/1.615, allocations: 1.95 MB / 0.8735 GB, free: 65.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003867/1.619, allocations: 3.303 MB / 0.8767 GB, free: 61.95 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/1.619, allocations: 0 / 0.8767 GB, free: 61.95 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3668/1.985, allocations: 141.3 MB / 1.015 GB, free: 146.2 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.58/22.56, allocations: 13.52 kB / 1.015 GB, free: 146.2 MB / 0.5607 GB " [Timeout remaining time 637] (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/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_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: 26.57641547091771]