Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.0008597/0.0008597, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.004448/0.004448, allocations: 166.2 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8274/0.8274, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 298.5 MB, free: 3.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.208e-05/1.335e-05, allocations: 6.281 kB / 298.5 MB, free: 3.457 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1444/0.1444, allocations: 35.78 MB / 334.3 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02081/0.1652, allocations: 10.8 MB / 345.1 MB, free: 140 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007023/0.1722, allocations: 326.2 kB / 345.4 MB, free: 15.81 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009587/0.1818, allocations: 8.722 MB / 354.1 MB, free: 7.066 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01048/0.1923, allocations: 3.965 MB / 358.1 MB, free: 3.082 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004653/0.1969, allocations: 2.46 MB / 360.5 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01396/0.2109, allocations: 14.44 MB / 375 MB, free: 2.125 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02187/0.2328, allocations: 17.67 MB / 392.7 MB, free: 292 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01296/0.2457, allocations: 10.89 MB / 403.5 MB, free: 5.379 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009607/0.2553, allocations: 7.129 MB / 410.7 MB, free: 14.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003791/0.2591, allocations: 2.031 MB / 412.7 MB, free: 12.2 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004528/0.2636, allocations: 2.433 MB / 415.1 MB, free: 9.77 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002996/0.2666, allocations: 4.324 MB / 419.5 MB, free: 5.434 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006866/0.2735, allocations: 5.403 MB / 424.9 MB, free: 20 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02227/0.2958, allocations: 27.32 MB / 452.2 MB, free: 4.621 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.2958, allocations: 0 / 452.2 MB, free: 4.621 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2958, allocations: 4 kB / 452.2 MB, free: 4.617 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004944/0.2963, allocations: 0 / 452.2 MB, free: 4.617 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.2633/0.5596, allocations: 16.1 MB / 468.3 MB, free: 110.3 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.5597, allocations: 13.14 kB / 468.3 MB, free: 110.3 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003469/0.5631, allocations: 1.845 MB / 470.2 MB, free: 109.3 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02565/0.5888, allocations: 9.273 MB / 479.4 MB, free: 105.2 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.6009, allocations: 7.722 MB / 487.2 MB, free: 98.62 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004466/0.6014, allocations: 0.9621 MB / 488.1 MB, free: 97.67 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002502/0.6039, allocations: 1.277 MB / 489.4 MB, free: 96.41 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02499/0.6289, allocations: 20.74 MB / 0.4982 GB, free: 75.55 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002162/0.6291, allocations: 23.89 kB / 0.4982 GB, free: 75.53 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001118/0.6302, allocations: 0.5228 MB / 0.4987 GB, free: 75.02 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003704/0.6306, allocations: 0.7571 MB / 0.4994 GB, free: 74.26 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01978/0.6503, allocations: 19.17 MB / 0.5182 GB, free: 55.08 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04859/0.6989, allocations: 56.97 MB / 0.5738 GB, free: 13.54 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/0.7138, allocations: 14.85 MB / 0.5883 GB, free: 2.082 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004069/0.7178, allocations: 3.804 MB / 0.592 GB, free: 14.26 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01251/0.7303, allocations: 10.36 MB / 0.6021 GB, free: 3.941 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/0.7304, allocations: 73.34 kB / 0.6022 GB, free: 3.859 MB / 442.8 MB Notification: Performance of pre-optimization done (n=361): time 4.588e-06/0.7304, allocations: 0 / 0.6022 GB, free: 3.859 MB / 442.8 MB Notification: Performance of matching and sorting (n=403): time 0.02291/0.7533, allocations: 17.69 MB / 0.6195 GB, free: 2.137 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.7534, allocations: 98.56 kB / 0.6196 GB, free: 2.027 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1471/0.9005, allocations: 5.906 MB / 0.6253 GB, free: 143.4 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007102/0.9012, allocations: 91.95 kB / 0.6254 GB, free: 143.4 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002924/0.9041, allocations: 6.239 MB / 0.6315 GB, free: 140.4 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008656/0.905, allocations: 1.472 MB / 0.633 GB, free: 139.3 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001683/0.9067, allocations: 1.531 MB / 0.6344 GB, free: 138.5 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 2.834e-05/0.9067, allocations: 306.4 kB / 0.6347 GB, free: 138.2 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003346/0.91, allocations: 3.147 MB / 0.6378 GB, free: 137.1 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004081/0.9141, allocations: 6.944 MB / 0.6446 GB, free: 130.9 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007105/0.9212, allocations: 10.81 MB / 0.6552 GB, free: 122.8 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.629e-05/0.9213, allocations: 38.88 kB / 0.6552 GB, free: 122.7 MB / 458.8 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01008/0.9314, allocations: 11.02 MB / 0.666 GB, free: 118.2 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.9314, allocations: 61.78 kB / 0.666 GB, free: 118.2 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-05/0.9315, allocations: 128 kB / 0.6661 GB, free: 118.2 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.9329, allocations: 0.9873 MB / 0.6671 GB, free: 118 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002923/0.9358, allocations: 1.852 MB / 0.6689 GB, free: 116.6 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006281/0.9421, allocations: 9.801 MB / 0.6785 GB, free: 107.4 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003385/0.9455, allocations: 460.9 kB / 0.6789 GB, free: 107 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003386/0.9458, allocations: 427.4 kB / 0.6793 GB, free: 106.6 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00462/0.9504, allocations: 4.513 MB / 0.6837 GB, free: 102.7 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005693/0.951, allocations: 0.5986 MB / 0.6843 GB, free: 102.1 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006062/0.957, allocations: 6.679 MB / 0.6908 GB, free: 96.26 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.9571, allocations: 44 kB / 0.6909 GB, free: 96.22 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.9571, allocations: 11.98 kB / 0.6909 GB, free: 96.21 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.9571, allocations: 19.92 kB / 0.6909 GB, free: 96.19 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01435/0.9714, allocations: 15.69 MB / 0.7062 GB, free: 80.48 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.9714, allocations: 7.938 kB / 0.7062 GB, free: 80.47 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001599/0.973, allocations: 0.7845 MB / 0.707 GB, free: 79.68 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/0.9742, allocations: 0.7849 MB / 0.7078 GB, free: 78.88 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001864/0.9744, allocations: 95.73 kB / 0.7079 GB, free: 78.79 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005359/0.9797, allocations: 8.93 MB / 0.7166 GB, free: 69.54 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.9797, allocations: 7.75 kB / 0.7166 GB, free: 69.54 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008513/0.9882, allocations: 9.834 MB / 0.7262 GB, free: 59.59 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/0.9901, allocations: 1.089 MB / 0.7273 GB, free: 58.5 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004369/0.9905, allocations: 76.44 kB / 0.7273 GB, free: 58.43 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.9918, allocations: 231.7 kB / 0.7276 GB, free: 58.2 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003386/0.9921, allocations: 290.6 kB / 0.7278 GB, free: 57.91 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/0.9923, allocations: 116 kB / 0.7279 GB, free: 57.8 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.003384/0.9957, allocations: 3.746 MB / 0.7316 GB, free: 54.09 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.11e-07/0.9957, allocations: 0 / 0.7316 GB, free: 54.09 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.004611/1, allocations: 2.039 MB / 0.7336 GB, free: 52.05 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * 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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (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.008539/1.009, allocations: 10.55 MB / 0.7439 GB, free: 41.38 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.007543/1.016, allocations: 7.759 MB / 0.7515 GB, free: 33.58 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 6.351e-06/1.016, allocations: 8 kB / 0.7515 GB, free: 33.57 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002744/1.019, allocations: 3.217 MB / 0.7546 GB, free: 30.31 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00371/1.023, allocations: 1.428 MB / 0.756 GB, free: 28.9 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2185/1.241, allocations: 72.86 MB / 0.8272 GB, free: 132.4 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005501/1.247, allocations: 7.31 MB / 0.8343 GB, free: 130.3 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.003675/1.251, allocations: 2.401 MB / 0.8367 GB, free: 130.1 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003002/1.254, allocations: 4.704 MB / 0.8413 GB, free: 126.1 MB / 474.8 MB Notification: Performance of SimCode: time 1.302e-06/1.254, allocations: 0 / 0.8413 GB, free: 126.1 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2933/1.547, allocations: 164 MB / 1.001 GB, free: 134.1 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/14.16, allocations: 6.375 kB / 1.001 GB, free: 134.1 MB / 490.8 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 654] Reference file matches [Calling sys.exit(0), Time elapsed: 25.217441295273602]