Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 197.3 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.351/1.351, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001055/0.001055, allocations: 102.3 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002289/0.000229, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2259, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.006019/0.232, allocations: 7.966 MB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003178/0.2352, allocations: 3.006 MB / 418.5 MB, free: 16.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004173/0.2356, allocations: 39.81 kB / 418.5 MB, free: 16.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00085/0.2365, allocations: 0.5476 MB / 419.1 MB, free: 16.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009358/0.2374, allocations: 0.5943 MB / 419.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.2378, allocations: 211.7 kB / 419.9 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.239, allocations: 2.16 MB / 422 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007891/0.2398, allocations: 0.9648 MB / 423 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005729/0.2404, allocations: 0.7119 MB / 423.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007523/0.2411, allocations: 0.9495 MB / 424.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.2413, allocations: 104 kB / 424.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003456/0.2417, allocations: 167.9 kB / 424.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003379/0.242, allocations: 0.5373 MB / 425.4 MB, free: 9.801 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.2422, allocations: 396.7 kB / 425.8 MB, free: 9.406 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001259/0.2435, allocations: 2.497 MB / 428.3 MB, free: 6.902 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2435, allocations: 0 / 428.3 MB, free: 6.902 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2435, allocations: 0 / 428.3 MB, free: 6.902 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.2435, allocations: 0 / 428.3 MB, free: 6.902 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.002649/0.2462, allocations: 1.958 MB / 430.3 MB, free: 4.887 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2462, allocations: 8.031 kB / 430.3 MB, free: 4.879 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005555/0.2468, allocations: 233.5 kB / 430.5 MB, free: 4.648 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.2482, allocations: 1.149 MB / 431.7 MB, free: 3.441 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.92e-05/0.2483, allocations: 115.1 kB / 431.8 MB, free: 3.328 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000166/0.2484, allocations: 156 kB / 431.9 MB, free: 3.176 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002447/0.2509, allocations: 1.989 MB / 433.9 MB, free: 1.137 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.762e-05/0.2509, allocations: 11.91 kB / 433.9 MB, free: 1.125 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/0.2511, allocations: 63.98 kB / 434 MB, free: 1.062 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.449e-05/0.2511, allocations: 74.91 kB / 434.1 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.2534, allocations: 1.643 MB / 435.7 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008929/0.2623, allocations: 6.96 MB / 442.7 MB, free: 8.051 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000759/0.2631, allocations: 444.5 kB / 443.1 MB, free: 7.602 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003728/0.2635, allocations: 265 kB / 443.4 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002186/0.2637, allocations: 113.5 kB / 443.5 MB, free: 7.215 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.2638, allocations: 43.39 kB / 443.5 MB, free: 7.164 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 3.186e-06/0.2638, allocations: 7.938 kB / 443.5 MB, free: 7.156 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.006784/0.2706, allocations: 3.296 MB / 446.8 MB, free: 3.777 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00236/0.2729, allocations: 2.17 MB / 449 MB, free: 1.434 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002194/0.2751, allocations: 1.619 MB / 450.6 MB, free: 15.8 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.743e-05/0.2752, allocations: 37.7 kB / 450.7 MB, free: 15.76 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007455/0.276, allocations: 1.014 MB / 451.7 MB, free: 14.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.2762, allocations: 240.8 kB / 451.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.119e-05/0.2762, allocations: 32 kB / 451.9 MB, free: 14.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2764, allocations: 369.9 kB / 452.3 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008091/0.2772, allocations: 0.5114 MB / 452.8 MB, free: 13.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/0.2786, allocations: 1.453 MB / 454.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.2798, allocations: 0.8047 MB / 455.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.2798, allocations: 8 kB / 455.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003322/0.2831, allocations: 2.146 MB / 457.2 MB, free: 8.691 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.2832, allocations: 20 kB / 457.2 MB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.212e-05/0.2832, allocations: 36 kB / 457.3 MB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005452/0.2838, allocations: 230.3 kB / 457.5 MB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.2849, allocations: 391.3 kB / 457.9 MB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.2866, allocations: 1.714 MB / 459.6 MB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.2879, allocations: 135.4 kB / 459.7 MB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.2881, allocations: 99.98 kB / 459.8 MB, free: 5.941 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * 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 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008795/0.2889, allocations: 0.5866 MB / 460.4 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002511/0.2892, allocations: 150.1 kB / 460.6 MB, free: 5.195 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.291, allocations: 1.11 MB / 461.7 MB, free: 4.07 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.291, allocations: 11.95 kB / 461.7 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2911, allocations: 3.938 kB / 461.7 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.2911, allocations: 3.984 kB / 461.7 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005241/0.2963, allocations: 3.386 MB / 465.1 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.2963, allocations: 4.125 kB / 465.1 MB, free: 0.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004204/0.2968, allocations: 111.9 kB / 465.2 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006348/0.2974, allocations: 226.3 kB / 465.4 MB, free: 164 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-05/0.2975, allocations: 19.98 kB / 465.4 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003703/0.3012, allocations: 3.694 MB / 469.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001997/0.3032, allocations: 2.014 MB / 471.1 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002647/0.3059, allocations: 1.726 MB / 472.9 MB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006123/0.3065, allocations: 315 kB / 473.2 MB, free: 7.863 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.3067, allocations: 27.88 kB / 473.2 MB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006542/0.3073, allocations: 47.95 kB / 473.2 MB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.3074, allocations: 63.88 kB / 473.3 MB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.536e-05/0.3075, allocations: 24 kB / 473.3 MB, free: 7.703 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001485/0.309, allocations: 1.055 MB / 474.4 MB, free: 6.652 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.309, allocations: 0 / 474.4 MB, free: 6.652 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001497/0.3105, allocations: 387.9 kB / 474.8 MB, free: 6.273 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002562/0.3108, allocations: 149.3 kB / 474.9 MB, free: 6.117 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002324/0.3131, allocations: 1.597 MB / 476.5 MB, free: 4.473 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3131, allocations: 0 / 476.5 MB, free: 4.473 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001172/0.3143, allocations: 0.8323 MB / 477.3 MB, free: 3.594 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.3161, allocations: 392.1 kB / 477.7 MB, free: 3.219 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005234/0.3213, allocations: 3.75 MB / 481.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001281/0.3226, allocations: 1.453 MB / 482.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003422/0.323, allocations: 127.4 kB / 483 MB, free: 13.75 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/0.323, allocations: 0 / 483 MB, free: 13.75 MB / 362.7 MB Notification: Performance of Templates: time 0.2262/0.5492, allocations: 46.91 MB / 0.5175 GB, free: 84.21 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches