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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008764/0.0008763, allocations: 102.3 kB / 17.31 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009291/0.0009291, allocations: 177.8 kB / 18.2 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.4 MB / 224.4 MB, free: 13.06 MB / 190.1 MB 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.0004819/0.000482, allocations: 8 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1117, allocations: 47.58 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01632/0.1281, allocations: 14.22 MB / 343.3 MB, free: 5.367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.1395, allocations: 5.004 MB / 348.3 MB, free: 356 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003154/0.1427, allocations: 83.62 kB / 348.4 MB, free: 272 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003169/0.1458, allocations: 0.9172 MB / 349.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004463/0.1503, allocations: 1.127 MB / 350.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00209/0.1524, allocations: 0.8186 MB / 351.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004838/0.1573, allocations: 3.748 MB / 355 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003313/0.1606, allocations: 2.7 MB / 357.7 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002131/0.1628, allocations: 1.225 MB / 358.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002354/0.1651, allocations: 1.645 MB / 360.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00038/0.1655, allocations: 200 kB / 360.7 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.1667, allocations: 419.7 kB / 361.2 MB, free: 3.371 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000785/0.1675, allocations: 0.7977 MB / 362 MB, free: 2.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00173/0.1692, allocations: 1.68 MB / 363.6 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004609/0.1739, allocations: 5.847 MB / 369.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1739, allocations: 0 / 369.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1739, allocations: 0 / 369.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.708e-05/0.1739, allocations: 0 / 369.5 MB, free: 11.01 MB / 318.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.007451/0.1814, allocations: 3.579 MB / 373.1 MB, free: 7.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.1815, allocations: 8.031 kB / 373.1 MB, free: 7.348 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006947/0.1822, allocations: 447.3 kB / 373.5 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002625/0.1848, allocations: 0.6212 MB / 374.1 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003243/0.1881, allocations: 2.105 MB / 376.2 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000187/0.1882, allocations: 242.6 kB / 376.5 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004132/0.1887, allocations: 315.9 kB / 376.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2335/0.4221, allocations: 4.037 MB / 380.8 MB, free: 46.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001107/0.4223, allocations: 3.969 kB / 380.8 MB, free: 46.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003083/0.4226, allocations: 128.1 kB / 380.9 MB, free: 46.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002084/0.4228, allocations: 146.7 kB / 381.1 MB, free: 46.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009149/0.432, allocations: 3.384 MB / 384.5 MB, free: 46.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02319/0.4552, allocations: 13.38 MB / 397.9 MB, free: 38.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005315/0.4606, allocations: 3.963 MB / 401.8 MB, free: 34.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.4624, allocations: 1.01 MB / 402.8 MB, free: 33.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004081/0.4665, allocations: 2.673 MB / 405.5 MB, free: 31.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.4666, allocations: 47.44 kB / 405.5 MB, free: 31.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.615e-06/0.4666, allocations: 4 kB / 405.5 MB, free: 31.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.009797/0.4764, allocations: 5.992 MB / 411.5 MB, free: 28.49 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.4765, allocations: 65.25 kB / 411.6 MB, free: 28.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002421/0.4789, allocations: 1.894 MB / 413.5 MB, free: 26.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.848e-05/0.479, allocations: 53.7 kB / 413.5 MB, free: 26.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007599/0.4798, allocations: 1.501 MB / 415 MB, free: 25.26 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003164/0.4801, allocations: 488.3 kB / 415.5 MB, free: 24.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.4803, allocations: 149.6 kB / 415.7 MB, free: 24.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.497e-05/0.4803, allocations: 305.1 kB / 416 MB, free: 24.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009589/0.4813, allocations: 0.7769 MB / 416.7 MB, free: 23.56 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/0.4824, allocations: 1.381 MB / 418.1 MB, free: 21.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002165/0.4846, allocations: 2.316 MB / 420.4 MB, free: 19.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.4846, allocations: 4 kB / 420.4 MB, free: 19.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003252/0.4879, allocations: 2.475 MB / 422.9 MB, free: 16.83 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.488, allocations: 19.94 kB / 422.9 MB, free: 16.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/0.488, allocations: 16 kB / 423 MB, free: 16.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003278/0.4883, allocations: 118.5 kB / 423.1 MB, free: 16.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/0.4899, allocations: 499.3 kB / 423.6 MB, free: 16.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007965/0.4907, allocations: 1.311 MB / 424.9 MB, free: 14.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.4923, allocations: 111.8 kB / 425 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.4924, allocations: 79.98 kB / 425.1 MB, free: 14.55 MB / 318.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.001771/0.4942, allocations: 0.9929 MB / 426.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003548/0.4946, allocations: 201.5 kB / 426.2 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002856/0.4974, allocations: 1.973 MB / 428.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.4975, allocations: 12 kB / 428.2 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4975, allocations: 4 kB / 428.2 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.4975, allocations: 3.984 kB / 428.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006166/0.5037, allocations: 4.989 MB / 433.2 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.5037, allocations: 4 kB / 433.2 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.5049, allocations: 323.8 kB / 433.6 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002691/0.5052, allocations: 98.45 kB / 433.6 MB, free: 5.855 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.072e-05/0.5053, allocations: 24 kB / 433.7 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006697/0.506, allocations: 1.284 MB / 435 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.506, allocations: 0 / 435 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003673/0.5097, allocations: 3.089 MB / 438 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008709/0.5105, allocations: 466.4 kB / 438.5 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.5108, allocations: 35.45 kB / 438.5 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009707/0.5117, allocations: 83.97 kB / 438.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.5119, allocations: 89.12 kB / 438.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-05/0.512, allocations: 36 kB / 438.7 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001947/0.5139, allocations: 1.289 MB / 440 MB, free: 15.24 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5139, allocations: 0 / 440 MB, free: 15.24 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001766/0.5157, allocations: 0.5293 MB / 440.6 MB, free: 14.71 MB / 334.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.004619/0.5203, allocations: 3.708 MB / 444.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003582/0.5239, allocations: 2.212 MB / 446.5 MB, free: 8.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.524, allocations: 0 / 446.5 MB, free: 8.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001728/0.5257, allocations: 1.179 MB / 447.7 MB, free: 7.449 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00342/0.5291, allocations: 498.5 kB / 448.1 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04282/0.572, allocations: 23.71 MB / 471.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001999/0.574, allocations: 2.259 MB / 474.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001854/0.5759, allocations: 0.5092 MB / 474.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001579/0.5775, allocations: 1.183 MB / 475.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of SimCode: time 2.104e-06/0.5775, allocations: 0 / 475.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08615/0.6637, allocations: 46.73 MB / 0.5103 GB, free: 10.52 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.6639, allocations: 255.6 kB / 0.5105 GB, free: 10.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.768/3.432, allocations: 0 / 0.5105 GB, free: 10.26 MB / 414.1 MB (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 --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) 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","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches