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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001038/0.001038, allocations: 187 kB / 17.92 MB, free: 3.855 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.162/1.162, allocations: 205.1 MB / 223.7 MB, free: 8.48 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.0008783/0.0008783, allocations: 108.8 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007888/0.0007889, allocations: 43.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1909, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01168/0.2026, allocations: 14.93 MB / 388.8 MB, free: 34.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007715/0.2104, allocations: 5.054 MB / 393.8 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002687/0.2131, allocations: 83.62 kB / 393.9 MB, free: 29.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003/0.2162, allocations: 0.9259 MB / 394.8 MB, free: 28.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003701/0.2199, allocations: 1.131 MB / 395.9 MB, free: 27.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00179/0.2217, allocations: 0.8355 MB / 396.8 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003318/0.2251, allocations: 3.792 MB / 400.6 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002689/0.2278, allocations: 2.735 MB / 403.3 MB, free: 19.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001487/0.2293, allocations: 1.448 MB / 404.8 MB, free: 18.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002038/0.2313, allocations: 1.922 MB / 406.7 MB, free: 16.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005473/0.2319, allocations: 292 kB / 407 MB, free: 16.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001148/0.233, allocations: 0.4958 MB / 407.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005714/0.2336, allocations: 0.9539 MB / 408.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001344/0.235, allocations: 1.835 MB / 410.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003319/0.2383, allocations: 6.044 MB / 416.3 MB, free: 6.848 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2383, allocations: 0 / 416.3 MB, free: 6.848 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.2383, allocations: 0 / 416.3 MB, free: 6.848 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.054e-05/0.2384, allocations: 4 kB / 416.3 MB, free: 6.844 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.006732/0.2451, allocations: 4.238 MB / 420.5 MB, free: 2.531 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.2452, allocations: 12.03 kB / 420.5 MB, free: 2.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002114/0.2473, allocations: 0.6211 MB / 421.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002752/0.2501, allocations: 2.097 MB / 423.3 MB, free: 15.74 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/0.2503, allocations: 242.8 kB / 423.5 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003742/0.2506, allocations: 315.8 kB / 423.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005456/0.2561, allocations: 4.039 MB / 427.9 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.221e-05/0.2562, allocations: 3.938 kB / 427.9 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002486/0.2564, allocations: 132 kB / 428 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001167/0.2565, allocations: 146.2 kB / 428.1 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004864/0.2614, allocations: 3.374 MB / 431.5 MB, free: 7.434 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01557/0.277, allocations: 13.33 MB / 444.8 MB, free: 9.645 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003738/0.2808, allocations: 3.965 MB / 448.8 MB, free: 5.18 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001434/0.2822, allocations: 0.9997 MB / 449.8 MB, free: 4.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003831/0.2861, allocations: 2.673 MB / 452.5 MB, free: 1.422 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.2861, allocations: 47.5 kB / 452.5 MB, free: 1.367 MB / 330.7 MB Notification: Performance of pre-optimization done (n=108): time 2.946e-06/0.2861, allocations: 0 / 452.5 MB, free: 1.367 MB / 330.7 MB Notification: Performance of matching and sorting (n=142): time 0.01005/0.2962, allocations: 5.974 MB / 458.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.2962, allocations: 72.72 kB / 458.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002266/0.2985, allocations: 1.885 MB / 460.4 MB, free: 9.277 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.836e-05/0.2986, allocations: 53.7 kB / 460.5 MB, free: 9.219 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008415/0.2994, allocations: 1.505 MB / 462 MB, free: 7.695 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000319/0.2998, allocations: 488.9 kB / 462.5 MB, free: 7.211 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004661/0.3002, allocations: 335.2 kB / 462.8 MB, free: 6.879 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.322e-05/0.3003, allocations: 309.1 kB / 463.1 MB, free: 6.574 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.3014, allocations: 0.773 MB / 463.9 MB, free: 5.801 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.3029, allocations: 1.379 MB / 465.3 MB, free: 4.152 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002668/0.3056, allocations: 2.312 MB / 467.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/0.3056, allocations: 8 kB / 467.6 MB, free: 1.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003464/0.309, allocations: 2.466 MB / 470 MB, free: 15.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.3091, allocations: 12 kB / 470.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/0.3091, allocations: 23.94 kB / 470.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003177/0.3094, allocations: 126.3 kB / 470.2 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/0.3111, allocations: 495.3 kB / 470.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009183/0.312, allocations: 1.311 MB / 472 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.3132, allocations: 107.8 kB / 472.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.3133, allocations: 83.98 kB / 472.2 MB, free: 12.8 MB / 362.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 (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.001337/0.3147, allocations: 0.9851 MB / 473.2 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002762/0.315, allocations: 205.5 kB / 473.4 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002989/0.318, allocations: 1.961 MB / 475.3 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.318, allocations: 19.94 kB / 475.4 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.318, allocations: 0 / 475.4 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.318, allocations: 7.969 kB / 475.4 MB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007078/0.3251, allocations: 4.985 MB / 480.3 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.3251, allocations: 7.938 kB / 480.4 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.3264, allocations: 315.6 kB / 480.7 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002645/0.3267, allocations: 102.7 kB / 480.8 MB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-05/0.3268, allocations: 28 kB / 480.8 MB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000801/0.3276, allocations: 1.284 MB / 482.1 MB, free: 2.625 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.3276, allocations: 4 kB / 482.1 MB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01333/0.3409, allocations: 10.55 MB / 492.6 MB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007552/0.3417, allocations: 458.5 kB / 493.1 MB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.3419, allocations: 28 kB / 493.1 MB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000885/0.3428, allocations: 79.91 kB / 493.2 MB, free: 7.145 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.343, allocations: 97.06 kB / 493.3 MB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.718e-05/0.3431, allocations: 36 kB / 493.3 MB, free: 7.016 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001664/0.3447, allocations: 1.289 MB / 494.6 MB, free: 5.703 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3448, allocations: 0 / 494.6 MB, free: 5.703 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001671/0.3464, allocations: 0.6797 MB / 495.3 MB, free: 5.023 MB / 378.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 (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.0002729/0.3467, allocations: 171 kB / 495.4 MB, free: 4.844 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003044/0.3498, allocations: 2.201 MB / 497.6 MB, free: 2.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3498, allocations: 4.062 kB / 497.6 MB, free: 2.586 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001446/0.3512, allocations: 1.173 MB / 498.8 MB, free: 1.355 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.3532, allocations: 495.2 kB / 499.3 MB, free: 0.875 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00976/0.363, allocations: 8.092 MB / 0.4955 GB, free: 8.676 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002017/0.3651, allocations: 2.291 MB / 0.4977 GB, free: 6.352 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001583/0.3666, allocations: 0.5326 MB / 0.4983 GB, free: 5.816 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004574/0.3671, allocations: 155.4 kB / 0.4984 GB, free: 5.664 MB / 394.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3671, allocations: 0 / 0.4984 GB, free: 5.664 MB / 394.7 MB Notification: Performance of Templates: time 0.1662/0.5333, allocations: 27.36 MB / 0.5251 GB, free: 109.9 MB / 394.7 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@2/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