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.0009222/0.0009223, allocations: 174 kB / 16.72 MB, free: 5.082 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.357/1.357, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007341/0.000734, allocations: 93.34 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003005/0.0003006, allocations: 16 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2393, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.0112/0.2505, allocations: 13.32 MB / 388.4 MB, free: 35.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009046/0.2596, allocations: 4.757 MB / 393.2 MB, free: 30.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003159/0.2628, allocations: 75.69 kB / 393.2 MB, free: 30.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002943/0.2658, allocations: 0.8039 MB / 394.1 MB, free: 29.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004262/0.2701, allocations: 1.037 MB / 395.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002007/0.2721, allocations: 0.6314 MB / 395.7 MB, free: 28.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004541/0.2767, allocations: 3.561 MB / 399.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002968/0.2797, allocations: 2.706 MB / 402 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001813/0.2815, allocations: 1.202 MB / 403.2 MB, free: 20.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.2833, allocations: 1.576 MB / 404.8 MB, free: 18.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003717/0.2837, allocations: 192 kB / 405 MB, free: 18.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001219/0.285, allocations: 411.7 kB / 405.4 MB, free: 18.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005843/0.2856, allocations: 0.7863 MB / 406.1 MB, free: 17.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001622/0.2872, allocations: 1.615 MB / 407.8 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003782/0.291, allocations: 5.076 MB / 412.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.291, allocations: 4 kB / 412.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.291, allocations: 0 / 412.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000129/0.2911, allocations: 0 / 412.8 MB, free: 10.8 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.007445/0.2986, allocations: 3.564 MB / 416.4 MB, free: 7.168 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.2987, allocations: 16.02 kB / 416.4 MB, free: 7.152 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002693/0.3014, allocations: 0.625 MB / 417 MB, free: 6.523 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003446/0.3048, allocations: 2.09 MB / 419.1 MB, free: 4.379 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001717/0.305, allocations: 238.9 kB / 419.4 MB, free: 4.145 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004399/0.3055, allocations: 327.8 kB / 419.7 MB, free: 3.824 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006615/0.3121, allocations: 4.019 MB / 423.7 MB, free: 15.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.629e-05/0.3122, allocations: 7.906 kB / 423.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002815/0.3125, allocations: 128 kB / 423.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001477/0.3127, allocations: 146.2 kB / 424 MB, free: 15.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006279/0.319, allocations: 3.354 MB / 427.3 MB, free: 12.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02137/0.3404, allocations: 13.4 MB / 440.7 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003979/0.3444, allocations: 3.965 MB / 444.7 MB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001576/0.346, allocations: 0.9996 MB / 445.7 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004716/0.3507, allocations: 2.665 MB / 448.4 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.3508, allocations: 51.5 kB / 448.4 MB, free: 5.973 MB / 330.7 MB Notification: Performance of pre-optimization done (n=108): time 4.128e-06/0.3508, allocations: 0 / 448.4 MB, free: 5.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=142): time 0.01154/0.3624, allocations: 5.978 MB / 454.4 MB, free: 15.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.3625, allocations: 68.72 kB / 454.5 MB, free: 15.81 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002809/0.3653, allocations: 1.873 MB / 456.3 MB, free: 13.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.3654, allocations: 49.7 kB / 456.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001014/0.3664, allocations: 1.504 MB / 457.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003892/0.3668, allocations: 496.9 kB / 458.4 MB, free: 11.83 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.137e-05/0.3669, allocations: 36 kB / 458.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.3671, allocations: 381.8 kB / 458.8 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.3684, allocations: 0.7613 MB / 459.5 MB, free: 10.65 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.3699, allocations: 1.383 MB / 460.9 MB, free: 9 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002848/0.3727, allocations: 2.296 MB / 463.2 MB, free: 6.434 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.3727, allocations: 8 kB / 463.2 MB, free: 6.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003973/0.3767, allocations: 2.458 MB / 465.7 MB, free: 3.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.996e-05/0.3768, allocations: 12 kB / 465.7 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.664e-05/0.3768, allocations: 23.94 kB / 465.7 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003633/0.3772, allocations: 122.9 kB / 465.8 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001733/0.3789, allocations: 499.2 kB / 466.3 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.38, allocations: 1.307 MB / 467.6 MB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.3816, allocations: 119.7 kB / 467.7 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.3817, allocations: 83.94 kB / 467.8 MB, free: 1.656 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.001682/0.3834, allocations: 0.9852 MB / 468.8 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003369/0.3837, allocations: 197.6 kB / 469 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003151/0.3869, allocations: 1.958 MB / 471 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.3869, allocations: 15.94 kB / 471 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3869, allocations: 8 kB / 471 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.387, allocations: 11.95 kB / 471 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007515/0.3945, allocations: 4.992 MB / 476 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.3945, allocations: 4.188 kB / 476 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/0.3959, allocations: 323.6 kB / 476.3 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002904/0.3962, allocations: 90.53 kB / 476.4 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.164e-05/0.3963, allocations: 35.92 kB / 476.4 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008524/0.3972, allocations: 1.272 MB / 477.7 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3972, allocations: 8.094 kB / 477.7 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004396/0.4016, allocations: 3.069 MB / 480.8 MB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009583/0.4026, allocations: 466.4 kB / 481.2 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002241/0.4028, allocations: 27.92 kB / 481.3 MB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008713/0.4037, allocations: 87.97 kB / 481.4 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.4039, allocations: 89.12 kB / 481.4 MB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.108e-05/0.4039, allocations: 36 kB / 481.5 MB, free: 3.652 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002039/0.406, allocations: 1.27 MB / 482.7 MB, free: 2.359 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.406, allocations: 0 / 482.7 MB, free: 2.359 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00175/0.4078, allocations: 0.5351 MB / 483.3 MB, free: 1.824 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.0003491/0.4081, allocations: 161.9 kB / 483.4 MB, free: 1.656 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003281/0.4114, allocations: 2.2 MB / 485.6 MB, free: 15.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.4114, allocations: 0.5 kB / 485.6 MB, free: 15.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001529/0.413, allocations: 1.181 MB / 486.8 MB, free: 14.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002637/0.4156, allocations: 0.4908 MB / 487.3 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009688/0.4253, allocations: 6.767 MB / 494.1 MB, free: 6.852 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001756/0.4271, allocations: 2.209 MB / 496.3 MB, free: 4.609 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007671/0.4279, allocations: 171.4 kB / 496.5 MB, free: 4.441 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.4279, allocations: 0 / 496.5 MB, free: 4.441 MB / 378.7 MB Notification: Performance of Templates: time 0.2367/0.6646, allocations: 85.31 MB / 0.5681 GB, free: 35.05 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