Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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.00128/0.00128, allocations: 122.2 kB / 18.45 MB, free: 4.457 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.001236/0.001236, allocations: 190.9 kB / 21.39 MB, free: 1.52 MB / 14.72 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 1.444/1.444, allocations: 207.6 MB / 231.8 MB, free: 4 MB / 174.1 MB " [Timeout remaining time 178] 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.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.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 55.92 kB / 342.3 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.114, allocations: 49.13 MB / 391.4 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01996/0.134, allocations: 15.18 MB / 406.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01255/0.1466, allocations: 5.139 MB / 411.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003746/0.1503, allocations: 87.62 kB / 411.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004001/0.1543, allocations: 1.118 MB / 412.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004738/0.159, allocations: 1.301 MB / 414.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002183/0.1612, allocations: 0.9001 MB / 415.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004242/0.1655, allocations: 3.635 MB / 418.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002927/0.1684, allocations: 2.314 MB / 421.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002272/0.1707, allocations: 1.737 MB / 422.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002719/0.1734, allocations: 2.078 MB / 424.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008739/0.1743, allocations: 480 kB / 425.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.176, allocations: 0.6755 MB / 426 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001674/0.1777, allocations: 1.149 MB / 427.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003168/0.1809, allocations: 2.038 MB / 429.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008593/0.1894, allocations: 6.275 MB / 435.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1895, allocations: 4 kB / 435.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1895, allocations: 0 / 435.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001531/0.1896, allocations: 0 / 435.5 MB, free: 12.36 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01113/0.2007, allocations: 4.327 MB / 439.8 MB, free: 7.957 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.2008, allocations: 8.031 kB / 439.8 MB, free: 7.949 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000841/0.2016, allocations: 451.3 kB / 440.3 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002926/0.2046, allocations: 0.6387 MB / 440.9 MB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00505/0.2096, allocations: 2.149 MB / 443.1 MB, free: 4.652 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002219/0.2098, allocations: 238.7 kB / 443.3 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006258/0.2105, allocations: 319.9 kB / 443.6 MB, free: 4.105 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008387/0.2188, allocations: 4.039 MB / 447.7 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.102e-05/0.2189, allocations: 3.984 kB / 447.7 MB, free: 0 / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003783/0.2193, allocations: 132 kB / 447.8 MB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001656/0.2195, allocations: 146.2 kB / 447.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006428/0.2259, allocations: 3.374 MB / 451.3 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2002/0.4261, allocations: 13.2 MB / 464.5 MB, free: 57.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003694/0.4298, allocations: 3.858 MB / 468.4 MB, free: 54.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.4312, allocations: 0.9032 MB / 469.3 MB, free: 54.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0046/0.4358, allocations: 2.661 MB / 471.9 MB, free: 54.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.4359, allocations: 46.27 kB / 472 MB, free: 54.28 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.786e-06/0.4359, allocations: 0 / 472 MB, free: 54.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01072/0.4466, allocations: 6.035 MB / 478 MB, free: 51.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.4466, allocations: 69.78 kB / 478.1 MB, free: 51.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002379/0.449, allocations: 1.896 MB / 480 MB, free: 51.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.887e-05/0.4491, allocations: 49.64 kB / 480 MB, free: 51.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006819/0.4498, allocations: 1.543 MB / 481.6 MB, free: 50.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002737/0.45, allocations: 0.5034 MB / 482.1 MB, free: 49.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003964/0.4504, allocations: 336.7 kB / 482.4 MB, free: 49.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.037e-05/0.4505, allocations: 307.5 kB / 482.7 MB, free: 49.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009525/0.4514, allocations: 0.7699 MB / 483.5 MB, free: 48.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.4527, allocations: 1.38 MB / 484.8 MB, free: 47.94 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/0.4548, allocations: 2.314 MB / 487.2 MB, free: 46.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.308e-06/0.4549, allocations: 3.906 kB / 487.2 MB, free: 46.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003232/0.4581, allocations: 2.478 MB / 489.6 MB, free: 45.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.4581, allocations: 15.19 kB / 489.7 MB, free: 45.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.19e-05/0.4581, allocations: 18.16 kB / 489.7 MB, free: 45.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003286/0.4585, allocations: 127.4 kB / 489.8 MB, free: 45.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/0.4601, allocations: 486.6 kB / 490.3 MB, free: 45.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007583/0.4608, allocations: 1.414 MB / 491.7 MB, free: 43.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.4622, allocations: 117.8 kB / 491.8 MB, free: 43.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.4623, allocations: 84.83 kB / 491.9 MB, free: 43.76 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001385/0.4637, allocations: 0.9798 MB / 492.9 MB, free: 43.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000288/0.4639, allocations: 210.5 kB / 493.1 MB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002598/0.4665, allocations: 1.964 MB / 495 MB, free: 41.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.4665, allocations: 18.53 kB / 495 MB, free: 41.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.4666, allocations: 0 / 495 MB, free: 41.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.4666, allocations: 7.969 kB / 495.1 MB, free: 41.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006454/0.473, allocations: 4.986 MB / 0.4883 GB, free: 37.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.473, allocations: 0 / 0.4883 GB, free: 37.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.4742, allocations: 315.8 kB / 0.4886 GB, free: 37.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002477/0.4745, allocations: 102.1 kB / 0.4887 GB, free: 37.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-05/0.4745, allocations: 32 kB / 0.4888 GB, free: 37.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005968/0.4751, allocations: 1.377 MB / 0.4901 GB, free: 35.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4751, allocations: 4 kB / 0.4901 GB, free: 35.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003341/0.4785, allocations: 3.095 MB / 0.4931 GB, free: 32.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009182/0.4794, allocations: 467.6 kB / 0.4936 GB, free: 32.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002302/0.4796, allocations: 28 kB / 0.4936 GB, free: 32.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008736/0.4805, allocations: 78.86 kB / 0.4937 GB, free: 31.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.4806, allocations: 95.34 kB / 0.4938 GB, free: 31.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.545e-05/0.4807, allocations: 39.98 kB / 0.4938 GB, free: 31.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001441/0.4821, allocations: 1.285 MB / 0.4951 GB, free: 30.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4821, allocations: 0 / 0.4951 GB, free: 30.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001587/0.4837, allocations: 0.5273 MB / 0.4956 GB, free: 29.98 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003549/0.4873, allocations: 3.713 MB / 0.4992 GB, free: 26.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002489/0.4898, allocations: 2.12 MB / 0.5013 GB, free: 24.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4898, allocations: 8.25 kB / 0.5013 GB, free: 24.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.4909, allocations: 1.099 MB / 0.5023 GB, free: 22.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001908/0.4928, allocations: 0.515 MB / 0.5029 GB, free: 22.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02199/0.5148, allocations: 20.05 MB / 0.5224 GB, free: 1.559 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001741/0.5165, allocations: 2.264 MB / 0.5246 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001578/0.5181, allocations: 0.5092 MB / 0.5251 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001556/0.5196, allocations: 1.179 MB / 0.5263 GB, free: 13.57 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5196, allocations: 0 / 0.5263 GB, free: 13.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1058/0.6254, allocations: 50.07 MB / 0.5752 GB, free: 11.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/14.54, allocations: 3.938 kB / 0.5752 GB, free: 11.35 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 22.369843105319887]