Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002586/0.002587, allocations: 179.7 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007401/0.0007402, allocations: 90.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003372, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.2995, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01226/0.3118, allocations: 13.28 MB / 387.8 MB, free: 35.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00974/0.3216, allocations: 4.754 MB / 392.6 MB, free: 30.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002916/0.3246, allocations: 79.69 kB / 392.7 MB, free: 30.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002471/0.3271, allocations: 0.8117 MB / 393.5 MB, free: 29.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00414/0.3313, allocations: 1.026 MB / 394.5 MB, free: 28.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001874/0.3331, allocations: 0.623 MB / 395.1 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004193/0.3374, allocations: 3.511 MB / 398.6 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002372/0.3397, allocations: 2.267 MB / 400.9 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001891/0.3416, allocations: 1.21 MB / 402.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001462/0.3431, allocations: 1.576 MB / 403.7 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002796/0.3434, allocations: 192 kB / 403.9 MB, free: 19.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001009/0.3444, allocations: 399.7 kB / 404.3 MB, free: 19.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005274/0.345, allocations: 0.7825 MB / 405.1 MB, free: 18.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007162/0.3457, allocations: 0.6991 MB / 405.8 MB, free: 17.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003438/0.3491, allocations: 5.065 MB / 410.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.3491, allocations: 0 / 410.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3492, allocations: 0 / 410.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001166/0.3493, allocations: 0 / 410.8 MB, free: 12.44 MB / 298.7 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.00754/0.3568, allocations: 3.61 MB / 414.4 MB, free: 8.758 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.3569, allocations: 12.03 kB / 414.4 MB, free: 8.746 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002595/0.3595, allocations: 0.6203 MB / 415.1 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00328/0.3628, allocations: 2.043 MB / 417.1 MB, free: 6.023 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.363, allocations: 246.3 kB / 417.3 MB, free: 5.781 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003761/0.3633, allocations: 307.9 kB / 417.6 MB, free: 5.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006538/0.3699, allocations: 4.023 MB / 421.7 MB, free: 1.395 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.53e-05/0.37, allocations: 4 kB / 421.7 MB, free: 1.391 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002583/0.3703, allocations: 132 kB / 421.8 MB, free: 1.262 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001223/0.3704, allocations: 146.2 kB / 421.9 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006027/0.3764, allocations: 3.355 MB / 425.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02077/0.3972, allocations: 13.38 MB / 438.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004221/0.4015, allocations: 3.969 MB / 442.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001598/0.4031, allocations: 1.011 MB / 443.7 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00451/0.4077, allocations: 2.658 MB / 446.3 MB, free: 7.695 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.4077, allocations: 47.5 kB / 446.4 MB, free: 7.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=108): time 3.086e-06/0.4077, allocations: 4 kB / 446.4 MB, free: 7.637 MB / 330.7 MB Notification: Performance of matching and sorting (n=142): time 0.01166/0.4194, allocations: 5.978 MB / 452.3 MB, free: 1.559 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.4195, allocations: 68.7 kB / 452.4 MB, free: 1.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00277/0.4222, allocations: 1.873 MB / 454.3 MB, free: 15.56 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.228e-05/0.4223, allocations: 49.7 kB / 454.3 MB, free: 15.51 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001115/0.4235, allocations: 1.505 MB / 455.8 MB, free: 13.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004106/0.4239, allocations: 496.9 kB / 456.3 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.796e-05/0.424, allocations: 44 kB / 456.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.4242, allocations: 377.8 kB / 456.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.4254, allocations: 0.7652 MB / 457.5 MB, free: 12.31 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001623/0.4271, allocations: 1.371 MB / 458.9 MB, free: 10.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.4286, allocations: 1.006 MB / 459.9 MB, free: 9.664 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.4286, allocations: 4 kB / 459.9 MB, free: 9.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003922/0.4325, allocations: 2.462 MB / 462.3 MB, free: 7.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.4326, allocations: 20.97 kB / 462.4 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/0.4326, allocations: 19.95 kB / 462.4 MB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003761/0.433, allocations: 114.5 kB / 462.5 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/0.4348, allocations: 499.2 kB / 463 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/0.436, allocations: 1.311 MB / 464.3 MB, free: 5.086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/0.4374, allocations: 115.8 kB / 464.4 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.4376, allocations: 80 kB / 464.5 MB, free: 4.895 MB / 346.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002055/0.4396, allocations: 0.9889 MB / 465.5 MB, free: 3.895 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003056/0.4399, allocations: 205.6 kB / 465.7 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003254/0.4432, allocations: 1.954 MB / 467.6 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.4432, allocations: 16 kB / 467.6 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4432, allocations: 0 / 467.6 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.4433, allocations: 7.969 kB / 467.6 MB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007876/0.4511, allocations: 4.993 MB / 472.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.4512, allocations: 0 / 472.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/0.4525, allocations: 327.8 kB / 473 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003089/0.4529, allocations: 90.53 kB / 473 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.848e-05/0.453, allocations: 31.98 kB / 473.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009854/0.454, allocations: 1.288 MB / 474.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.454, allocations: 0 / 474.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004456/0.4584, allocations: 3.077 MB / 477.4 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000939/0.4594, allocations: 462.5 kB / 477.9 MB, free: 7.125 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/0.4596, allocations: 31.98 kB / 477.9 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009173/0.4605, allocations: 79.91 kB / 478 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.4607, allocations: 89.25 kB / 478.1 MB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.382e-05/0.4608, allocations: 39.95 kB / 478.1 MB, free: 6.887 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002143/0.4629, allocations: 1.273 MB / 479.4 MB, free: 5.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4629, allocations: 0 / 479.4 MB, free: 5.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001903/0.4649, allocations: 0.5312 MB / 479.9 MB, free: 5.059 MB / 362.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004223/0.4653, allocations: 165.3 kB / 480.1 MB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003671/0.469, allocations: 2.211 MB / 482.3 MB, free: 2.625 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.469, allocations: 1.875 kB / 482.3 MB, free: 2.625 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001651/0.4706, allocations: 1.17 MB / 483.5 MB, free: 1.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/0.4732, allocations: 0.4943 MB / 484 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.4852, allocations: 6.775 MB / 490.7 MB, free: 10.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002515/0.4878, allocations: 2.212 MB / 493 MB, free: 7.828 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000747/0.4886, allocations: 171.4 kB / 493.1 MB, free: 7.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.193e-06/0.4886, allocations: 4 kB / 493.1 MB, free: 7.656 MB / 378.7 MB Notification: Performance of Templates: time 0.2677/0.7563, allocations: 85.42 MB / 0.565 GB, free: 37.09 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches