Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 226.6 MB / 244.4 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007515/0.0007516, allocations: 97.94 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002055/0.0002055, allocations: 12 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1769, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.007738/0.1847, allocations: 9.649 MB / 417.1 MB, free: 18.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005677/0.1904, allocations: 3.447 MB / 420.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001897/0.1923, allocations: 63.69 kB / 420.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.1944, allocations: 0.6523 MB / 421.3 MB, free: 14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002553/0.1969, allocations: 0.7264 MB / 422 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.1981, allocations: 302.4 kB / 422.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004308/0.2025, allocations: 2.946 MB / 425.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003667/0.2062, allocations: 1.86 MB / 427.1 MB, free: 8.121 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002353/0.2085, allocations: 1.015 MB / 428.2 MB, free: 7.102 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002844/0.2114, allocations: 1.405 MB / 429.6 MB, free: 5.691 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001209/0.2126, allocations: 152 kB / 429.7 MB, free: 5.543 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002142/0.2148, allocations: 235.9 kB / 429.9 MB, free: 5.312 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001352/0.2162, allocations: 0.7982 MB / 430.7 MB, free: 4.512 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001419/0.2176, allocations: 0.5665 MB / 431.3 MB, free: 3.938 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004508/0.2221, allocations: 3.935 MB / 435.2 MB, free: 15.99 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.906e-06/0.2222, allocations: 0 / 435.2 MB, free: 15.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.416e-06/0.2222, allocations: 0 / 435.2 MB, free: 15.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000253/0.2224, allocations: 0 / 435.2 MB, free: 15.99 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.008131/0.2306, allocations: 2.888 MB / 438.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.2306, allocations: 11.97 kB / 438.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/0.2325, allocations: 348 kB / 438.5 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004687/0.2372, allocations: 1.713 MB / 440.2 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002733/0.2375, allocations: 201 kB / 440.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008996/0.2384, allocations: 248 kB / 440.6 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008966/0.2474, allocations: 3.268 MB / 443.9 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001379/0.2476, allocations: 3.906 kB / 443.9 MB, free: 7.121 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005859/0.2482, allocations: 104 kB / 444 MB, free: 7.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001513/0.2483, allocations: 124.9 kB / 444.1 MB, free: 6.895 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005067/0.2534, allocations: 2.736 MB / 446.9 MB, free: 4.145 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01534/0.2688, allocations: 10.52 MB / 457.4 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001835/0.2707, allocations: 1.354 MB / 458.7 MB, free: 7.836 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.2719, allocations: 0.7852 MB / 459.5 MB, free: 7.047 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002879/0.2722, allocations: 212.2 kB / 459.7 MB, free: 6.801 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.2722, allocations: 47.56 kB / 459.8 MB, free: 6.746 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 3.236e-06/0.2722, allocations: 0 / 459.8 MB, free: 6.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.01488/0.2871, allocations: 6.944 MB / 466.7 MB, free: 15.69 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.2872, allocations: 64.41 kB / 466.8 MB, free: 15.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/0.2897, allocations: 1.778 MB / 468.6 MB, free: 13.83 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/0.2898, allocations: 45.7 kB / 468.6 MB, free: 13.78 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000951/0.2908, allocations: 1.283 MB / 469.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003428/0.2912, allocations: 421.9 kB / 470.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.888e-05/0.2912, allocations: 32 kB / 470.3 MB, free: 12.03 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.2914, allocations: 369.9 kB / 470.7 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.2926, allocations: 0.773 MB / 471.5 MB, free: 10.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.294, allocations: 1.28 MB / 472.7 MB, free: 9.383 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.2954, allocations: 0.9823 MB / 473.7 MB, free: 8.398 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.2954, allocations: 4 kB / 473.7 MB, free: 8.395 MB / 346.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003804/0.2993, allocations: 2.47 MB / 476.2 MB, free: 5.902 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.2993, allocations: 12.56 kB / 476.2 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.2993, allocations: 16 kB / 476.2 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006266/0.3, allocations: 243.2 kB / 476.5 MB, free: 5.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.3014, allocations: 415.3 kB / 476.9 MB, free: 5.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002489/0.3039, allocations: 3.006 MB / 479.9 MB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/0.3054, allocations: 127.8 kB / 480 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.3055, allocations: 79.92 kB / 480.1 MB, free: 1.746 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001615/0.3071, allocations: 0.8194 MB / 480.9 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003338/0.3074, allocations: 185.7 kB / 481.1 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003212/0.3107, allocations: 2.031 MB / 483.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3107, allocations: 12 kB / 483.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3107, allocations: 8 kB / 483.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.3107, allocations: 11.92 kB / 483.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007226/0.318, allocations: 4.759 MB / 487.9 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.318, allocations: 288 / 487.9 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.3191, allocations: 275.5 kB / 488.2 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005312/0.3196, allocations: 203.2 kB / 488.4 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.178e-05/0.3197, allocations: 24 kB / 488.4 MB, free: 9.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002406/0.3221, allocations: 2.97 MB / 491.4 MB, free: 6.043 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3221, allocations: 4 kB / 491.4 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004403/0.3265, allocations: 3.133 MB / 494.5 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000837/0.3274, allocations: 442.5 kB / 494.9 MB, free: 2.395 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001919/0.3276, allocations: 24 kB / 495 MB, free: 2.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008624/0.3284, allocations: 99.89 kB / 495.1 MB, free: 2.273 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.3286, allocations: 80.83 kB / 495.1 MB, free: 2.195 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.159e-05/0.3287, allocations: 35.98 kB / 495.2 MB, free: 2.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001797/0.3305, allocations: 1.212 MB / 496.4 MB, free: 0.957 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3305, allocations: 0 / 496.4 MB, free: 0.957 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001477/0.332, allocations: 484 kB / 496.9 MB, free: 496 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002951/0.3323, allocations: 159 kB / 497 MB, free: 328 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003294/0.3356, allocations: 2.334 MB / 499.3 MB, free: 13.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3356, allocations: 0.8125 kB / 499.3 MB, free: 13.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.3373, allocations: 1.338 MB / 0.4889 GB, free: 12.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001971/0.3393, allocations: 485.2 kB / 0.4894 GB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007924/0.3472, allocations: 5.864 MB / 0.4951 GB, free: 6.109 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001694/0.349, allocations: 1.978 MB / 0.4971 GB, free: 4.098 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006294/0.3496, allocations: 159.3 kB / 0.4972 GB, free: 3.941 MB / 378.7 MB Notification: Performance of SimCode: time 6.82e-07/0.3496, allocations: 3.938 kB / 0.4972 GB, free: 3.938 MB / 378.7 MB Notification: Performance of Templates: time 0.2452/0.5949, allocations: 82.26 MB / 0.5776 GB, free: 20.62 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches