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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 105 kB / 17.16 MB, free: 6.312 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.001584/0.001584, allocations: 194 kB / 18.07 MB, free: 5.41 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.513/1.513, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001429/0.001429, allocations: 55.92 kB / 280 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1097, allocations: 46.62 MB / 326.6 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01772/0.1275, allocations: 14.94 MB / 341.5 MB, free: 5.867 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01152/0.139, allocations: 5.047 MB / 346.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003629/0.1427, allocations: 75.69 kB / 346.7 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004197/0.147, allocations: 0.9288 MB / 347.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00511/0.1522, allocations: 1.131 MB / 348.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002909/0.1551, allocations: 0.8265 MB / 349.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00589/0.161, allocations: 3.752 MB / 353.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004749/0.1658, allocations: 2.719 MB / 356 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00278/0.1686, allocations: 1.444 MB / 357.5 MB, free: 5.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00343/0.172, allocations: 1.922 MB / 359.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001172/0.1732, allocations: 292 kB / 359.7 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002319/0.1756, allocations: 0.4997 MB / 360.2 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001365/0.177, allocations: 0.9422 MB / 361.1 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002977/0.1799, allocations: 1.843 MB / 363 MB, free: 324 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005927/0.1859, allocations: 6.048 MB / 369 MB, free: 10.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1859, allocations: 4 kB / 369 MB, free: 10.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1859, allocations: 0 / 369 MB, free: 10.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001726/0.1861, allocations: 0 / 369 MB, free: 10.25 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.01261/0.1987, allocations: 4.226 MB / 373.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.1988, allocations: 8.031 kB / 373.2 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003461/0.2023, allocations: 0.6289 MB / 373.9 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004537/0.2068, allocations: 2.093 MB / 376 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002216/0.2071, allocations: 238.9 kB / 376.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00055/0.2076, allocations: 311.8 kB / 376.5 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2028/0.4105, allocations: 4.042 MB / 380.5 MB, free: 48.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.751e-05/0.4106, allocations: 3.5 kB / 380.6 MB, free: 48.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003057/0.4109, allocations: 130.4 kB / 380.7 MB, free: 48.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001582/0.4111, allocations: 148.1 kB / 380.8 MB, free: 48.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006379/0.4175, allocations: 3.373 MB / 384.2 MB, free: 47.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01892/0.4364, allocations: 13.34 MB / 397.5 MB, free: 39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003957/0.4404, allocations: 3.968 MB / 401.5 MB, free: 35.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.4419, allocations: 0.9973 MB / 402.5 MB, free: 34.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003909/0.4458, allocations: 2.663 MB / 405.2 MB, free: 32.88 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.4459, allocations: 47.45 kB / 405.2 MB, free: 32.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.194e-06/0.4459, allocations: 0 / 405.2 MB, free: 32.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01011/0.456, allocations: 5.986 MB / 411.2 MB, free: 29.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.4561, allocations: 68.72 kB / 411.3 MB, free: 29.24 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002434/0.4585, allocations: 1.889 MB / 413.2 MB, free: 27.31 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.169e-05/0.4586, allocations: 57.53 kB / 413.2 MB, free: 27.25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000745/0.4594, allocations: 1.504 MB / 414.7 MB, free: 25.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002657/0.4596, allocations: 488.3 kB / 415.2 MB, free: 25.26 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004278/0.4601, allocations: 335.2 kB / 415.5 MB, free: 24.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.046e-05/0.4601, allocations: 305.1 kB / 415.8 MB, free: 24.63 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.4612, allocations: 0.7691 MB / 416.6 MB, free: 23.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.4624, allocations: 1.383 MB / 418 MB, free: 22.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002467/0.4649, allocations: 2.309 MB / 420.3 MB, free: 19.63 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.936e-05/0.4649, allocations: 12 kB / 420.3 MB, free: 19.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003718/0.4686, allocations: 2.465 MB / 422.8 MB, free: 17.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.4687, allocations: 24.62 kB / 422.8 MB, free: 17.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.645e-05/0.4687, allocations: 16 kB / 422.8 MB, free: 17.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004002/0.4691, allocations: 122.5 kB / 422.9 MB, free: 16.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.4708, allocations: 491.2 kB / 423.4 MB, free: 16.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008175/0.4716, allocations: 1.303 MB / 424.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.4732, allocations: 120 kB / 424.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/0.4734, allocations: 80 kB / 424.9 MB, free: 14.86 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.001626/0.475, allocations: 0.9889 MB / 425.9 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004871/0.4755, allocations: 201.5 kB / 426.1 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003285/0.4788, allocations: 1.965 MB / 428 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.4788, allocations: 15.94 kB / 428.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.4789, allocations: 0 / 428.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.4789, allocations: 7.969 kB / 428.1 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009235/0.4881, allocations: 4.997 MB / 433.1 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.4882, allocations: 0 / 433.1 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.4895, allocations: 319.5 kB / 433.4 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003031/0.4898, allocations: 94.52 kB / 433.5 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/0.49, allocations: 28.03 kB / 433.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007669/0.4907, allocations: 1.288 MB / 434.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.4908, allocations: 4.156 kB / 434.8 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/0.495, allocations: 3.084 MB / 437.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.4961, allocations: 458.4 kB / 438.3 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006338/0.4968, allocations: 24 kB / 438.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/0.4981, allocations: 83.97 kB / 438.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/0.4983, allocations: 85.19 kB / 438.5 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.22e-05/0.4983, allocations: 40 kB / 438.5 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002374/0.5007, allocations: 1.281 MB / 439.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5007, allocations: 0 / 439.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002689/0.5034, allocations: 0.5344 MB / 440.4 MB, free: 15.05 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.0005791/0.504, allocations: 166.8 kB / 440.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00459/0.5086, allocations: 2.213 MB / 442.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/0.5087, allocations: 4 kB / 442.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001963/0.5106, allocations: 1.174 MB / 443.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003843/0.5145, allocations: 485 kB / 444.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01514/0.5296, allocations: 7.018 MB / 451.4 MB, free: 3.848 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003076/0.5328, allocations: 2.259 MB / 453.7 MB, free: 1.559 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002549/0.5354, allocations: 0.517 MB / 454.2 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007399/0.5361, allocations: 151.4 kB / 454.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of SimCode: time 1.794e-06/0.5361, allocations: 0 / 454.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of Templates: time 0.05456/0.5907, allocations: 25.08 MB / 479.4 MB, free: 7.801 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (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 & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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