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.001395/0.001395, allocations: 109.4 kB / 18.4 MB, free: 4.672 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.00142/0.001421, allocations: 189.2 kB / 19.33 MB, free: 3.75 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.445/1.445, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001206/0.001206, allocations: 51.92 kB / 329.2 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0759/0.07711, allocations: 46.61 MB / 375.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.1759/0.253, allocations: 15.11 MB / 390.9 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009402/0.2625, allocations: 5.12 MB / 396.1 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.2652, allocations: 83.91 kB / 396.1 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002779/0.268, allocations: 1.061 MB / 397.2 MB, free: 352 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003846/0.2719, allocations: 1.254 MB / 398.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002352/0.2742, allocations: 0.9074 MB / 399.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005155/0.2794, allocations: 3.622 MB / 403 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004259/0.2837, allocations: 3.263 MB / 406.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003125/0.2868, allocations: 1.728 MB / 408 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003864/0.2907, allocations: 2.05 MB / 410 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001283/0.292, allocations: 478.4 kB / 410.5 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002249/0.2943, allocations: 0.6787 MB / 411.2 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00117/0.2955, allocations: 1.145 MB / 412.3 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002535/0.298, allocations: 2.036 MB / 414.4 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006866/0.3049, allocations: 6.25 MB / 420.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3049, allocations: 0 / 420.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3049, allocations: 4 kB / 420.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001349/0.3051, allocations: 0 / 420.6 MB, free: 2.648 MB / 334.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.01086/0.3159, allocations: 4.242 MB / 424.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.316, allocations: 8.031 kB / 424.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002979/0.319, allocations: 0.6173 MB / 425.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003784/0.3228, allocations: 2.14 MB / 427.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001683/0.323, allocations: 234.7 kB / 427.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005141/0.3235, allocations: 312.3 kB / 428.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007571/0.3311, allocations: 4.05 MB / 432.2 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.969e-05/0.3312, allocations: 7.938 kB / 432.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002857/0.3315, allocations: 124 kB / 432.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001645/0.3316, allocations: 150.2 kB / 432.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00623/0.3379, allocations: 3.37 MB / 435.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02171/0.3596, allocations: 13.18 MB / 449 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003978/0.3636, allocations: 3.954 MB / 453 MB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/0.3652, allocations: 0.9877 MB / 454 MB, free: 292 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004495/0.3697, allocations: 2.646 MB / 456.6 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.3698, allocations: 51.5 kB / 456.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.635e-06/0.3698, allocations: 0 / 456.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01164/0.3814, allocations: 6.009 MB / 462.7 MB, free: 7.383 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.3815, allocations: 64.72 kB / 462.7 MB, free: 7.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002684/0.3842, allocations: 1.889 MB / 464.6 MB, free: 5.371 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.3843, allocations: 45.7 kB / 464.7 MB, free: 5.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009842/0.3853, allocations: 1.501 MB / 466.2 MB, free: 3.801 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003764/0.3857, allocations: 496.9 kB / 466.7 MB, free: 3.309 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004776/0.3862, allocations: 327.2 kB / 467 MB, free: 2.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.81e-05/0.3863, allocations: 305.1 kB / 467.3 MB, free: 2.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.3875, allocations: 0.7691 MB / 468 MB, free: 1.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.3889, allocations: 1.371 MB / 469.4 MB, free: 276 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002758/0.3917, allocations: 2.316 MB / 471.7 MB, free: 13.69 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.488e-05/0.3917, allocations: 11.94 kB / 471.7 MB, free: 13.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003878/0.3956, allocations: 2.473 MB / 474.2 MB, free: 11.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/0.3957, allocations: 12 kB / 474.2 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/0.3957, allocations: 23.94 kB / 474.2 MB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003593/0.3961, allocations: 126.9 kB / 474.4 MB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/0.3979, allocations: 491.2 kB / 474.9 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/0.3989, allocations: 1.41 MB / 476.3 MB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.4004, allocations: 119.9 kB / 476.4 MB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/0.4005, allocations: 79.98 kB / 476.5 MB, free: 8.789 MB / 398.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.001568/0.4021, allocations: 0.9889 MB / 477.4 MB, free: 7.789 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003309/0.4024, allocations: 201.5 kB / 477.6 MB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00306/0.4055, allocations: 1.958 MB / 479.6 MB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.4055, allocations: 16 kB / 479.6 MB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4055, allocations: 4 kB / 479.6 MB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.4055, allocations: 7.969 kB / 479.6 MB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006927/0.4125, allocations: 4.987 MB / 484.6 MB, free: 500 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.4125, allocations: 0 / 484.6 MB, free: 500 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/0.4139, allocations: 323.8 kB / 484.9 MB, free: 176 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002785/0.4142, allocations: 94.52 kB / 485 MB, free: 72 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.126e-05/0.4142, allocations: 32 kB / 485.1 MB, free: 40 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008453/0.4151, allocations: 1.371 MB / 486.4 MB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.4151, allocations: 7.938 kB / 486.4 MB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004395/0.4195, allocations: 3.082 MB / 489.5 MB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000786/0.4203, allocations: 458.5 kB / 490 MB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/0.4206, allocations: 28 kB / 490 MB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009605/0.4215, allocations: 75.91 kB / 490.1 MB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.4217, allocations: 97.12 kB / 490.2 MB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.03e-05/0.4218, allocations: 43.92 kB / 490.2 MB, free: 10.67 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001707/0.4235, allocations: 1.285 MB / 491.5 MB, free: 9.363 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4235, allocations: 0 / 491.5 MB, free: 9.363 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001566/0.4251, allocations: 0.5312 MB / 492 MB, free: 8.832 MB / 414.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.0002917/0.4254, allocations: 159 kB / 492.2 MB, free: 8.664 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003373/0.4288, allocations: 2.224 MB / 494.4 MB, free: 6.387 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.4288, allocations: 4 kB / 494.4 MB, free: 6.383 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.4303, allocations: 1.179 MB / 495.6 MB, free: 5.152 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002055/0.4323, allocations: 0.5236 MB / 496.1 MB, free: 4.625 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008309/0.4407, allocations: 5.587 MB / 0.4899 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001786/0.4425, allocations: 2.216 MB / 0.4921 GB, free: 12.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006516/0.4431, allocations: 171.4 kB / 0.4923 GB, free: 12.56 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4431, allocations: 0 / 0.4923 GB, free: 12.56 MB / 430.1 MB Notification: Performance of Templates: time 0.2724/0.7156, allocations: 86.55 MB / 0.5768 GB, free: 146.6 MB / 478.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/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) Reference file matches