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.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.00128/0.00128, allocations: 108.8 kB / 19.16 MB, free: 3.871 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.001381/0.001381, allocations: 205.6 kB / 22.12 MB, free: 0.9297 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.38/1.38, allocations: 207.6 MB / 232.5 MB, free: 3.941 MB / 174.1 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.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 59.92 kB / 343 MB, free: 9.969 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09276, allocations: 49.12 MB / 392.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01803/0.1108, allocations: 15.19 MB / 407.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.1212, allocations: 5.136 MB / 412.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002606/0.1238, allocations: 107.3 kB / 412.6 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003282/0.1271, allocations: 1.118 MB / 413.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004456/0.1315, allocations: 1.262 MB / 415 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002423/0.134, allocations: 0.9157 MB / 415.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005325/0.1393, allocations: 3.635 MB / 419.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003635/0.1429, allocations: 2.325 MB / 421.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003275/0.1462, allocations: 1.752 MB / 423.6 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003079/0.1493, allocations: 2.09 MB / 425.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006091/0.1499, allocations: 480 kB / 426.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001267/0.1512, allocations: 0.6833 MB / 426.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001031/0.1522, allocations: 1.141 MB / 428 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002274/0.1545, allocations: 2.042 MB / 430 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006974/0.1614, allocations: 6.275 MB / 436.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1614, allocations: 0 / 436.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1614, allocations: 0 / 436.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.653e-05/0.1615, allocations: 0 / 436.3 MB, free: 12.3 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.009507/0.171, allocations: 4.327 MB / 440.6 MB, free: 7.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.1711, allocations: 12.03 kB / 440.6 MB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.734e-05/0.1712, allocations: 82.48 kB / 440.7 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005634/0.1717, allocations: 455.2 kB / 441.2 MB, free: 7.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002713/0.1744, allocations: 0.6349 MB / 441.8 MB, free: 6.703 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003825/0.1783, allocations: 2.149 MB / 443.9 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001992/0.1785, allocations: 238.4 kB / 444.2 MB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004752/0.1789, allocations: 308 kB / 444.5 MB, free: 3.965 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006785/0.1857, allocations: 4.047 MB / 448.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.214e-05/0.1858, allocations: 3.938 kB / 448.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002957/0.1861, allocations: 132 kB / 448.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001452/0.1862, allocations: 138.2 kB / 448.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00579/0.192, allocations: 3.378 MB / 452.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1858/0.3778, allocations: 13.2 MB / 465.4 MB, free: 57.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003656/0.3815, allocations: 3.867 MB / 469.2 MB, free: 55.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.383, allocations: 0.897 MB / 470.1 MB, free: 55.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004321/0.3873, allocations: 2.656 MB / 472.8 MB, free: 54.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.3873, allocations: 47.53 kB / 472.8 MB, free: 54.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.326e-06/0.3873, allocations: 1.781 kB / 472.8 MB, free: 54.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01086/0.3982, allocations: 6.042 MB / 478.9 MB, free: 51.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.3982, allocations: 69.44 kB / 478.9 MB, free: 51.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002318/0.4005, allocations: 1.891 MB / 480.8 MB, free: 51.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.039e-05/0.4006, allocations: 50.92 kB / 480.9 MB, free: 51.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006526/0.4013, allocations: 1.548 MB / 482.4 MB, free: 50.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002844/0.4016, allocations: 0.503 MB / 482.9 MB, free: 49.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004159/0.402, allocations: 338.9 kB / 483.3 MB, free: 49.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.857e-05/0.402, allocations: 305.3 kB / 483.6 MB, free: 49.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009835/0.403, allocations: 0.768 MB / 484.3 MB, free: 49 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/0.4042, allocations: 1.379 MB / 485.7 MB, free: 47.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002167/0.4064, allocations: 2.314 MB / 488 MB, free: 46.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.4064, allocations: 7.906 kB / 488 MB, free: 46.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003166/0.4096, allocations: 2.477 MB / 490.5 MB, free: 45.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.4096, allocations: 19.78 kB / 490.5 MB, free: 45.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/0.4096, allocations: 15.75 kB / 490.5 MB, free: 45.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003222/0.4099, allocations: 117 kB / 490.7 MB, free: 45.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/0.4115, allocations: 0.4899 MB / 491.1 MB, free: 45.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007121/0.4122, allocations: 1.402 MB / 492.5 MB, free: 43.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.4135, allocations: 114.7 kB / 492.7 MB, free: 43.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.4136, allocations: 83.92 kB / 492.7 MB, free: 43.77 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.001378/0.415, allocations: 0.9827 MB / 493.7 MB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002738/0.4152, allocations: 210.1 kB / 493.9 MB, free: 43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00262/0.4179, allocations: 1.971 MB / 495.9 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.4179, allocations: 10.94 kB / 495.9 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4179, allocations: 5.812 kB / 495.9 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.4179, allocations: 7.969 kB / 495.9 MB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005942/0.4238, allocations: 4.98 MB / 0.4892 GB, free: 37.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.4238, allocations: 8.031 kB / 0.4892 GB, free: 37.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.425, allocations: 319.5 kB / 0.4895 GB, free: 37.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002472/0.4253, allocations: 95.17 kB / 0.4896 GB, free: 37.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.025e-05/0.4254, allocations: 32 kB / 0.4896 GB, free: 37.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005921/0.4259, allocations: 1.375 MB / 0.4909 GB, free: 35.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4259, allocations: 7.953 kB / 0.4909 GB, free: 35.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003353/0.4293, allocations: 3.091 MB / 0.494 GB, free: 32.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007041/0.43, allocations: 463.6 kB / 0.4944 GB, free: 31.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002232/0.4302, allocations: 28 kB / 0.4944 GB, free: 31.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008712/0.4311, allocations: 85.03 kB / 0.4945 GB, free: 31.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.4312, allocations: 93.12 kB / 0.4946 GB, free: 31.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.827e-05/0.4313, allocations: 35.98 kB / 0.4946 GB, free: 31.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001414/0.4327, allocations: 1.285 MB / 0.4959 GB, free: 30.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4327, allocations: 0 / 0.4959 GB, free: 30.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001534/0.4343, allocations: 0.5312 MB / 0.4964 GB, free: 29.81 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.00354/0.4378, allocations: 3.72 MB / 0.5 GB, free: 26.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002564/0.4404, allocations: 2.123 MB / 0.5021 GB, free: 23.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4404, allocations: 0 / 0.5021 GB, free: 23.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.4415, allocations: 1.097 MB / 0.5032 GB, free: 22.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002094/0.4436, allocations: 0.5284 MB / 0.5037 GB, free: 22.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02277/0.4663, allocations: 20.05 MB / 0.5233 GB, free: 1.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002143/0.4685, allocations: 2.259 MB / 0.5255 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00167/0.4702, allocations: 0.5131 MB / 0.526 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001782/0.4719, allocations: 1.18 MB / 0.5271 GB, free: 13.4 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4719, allocations: 0 / 0.5271 GB, free: 13.4 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1009/0.5728, allocations: 50.11 MB / 0.5761 GB, free: 11.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/14.51, allocations: 8.062 kB / 0.5761 GB, free: 11.14 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/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/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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 24.09922158002155]