Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009004/0.0009003, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.169/1.169, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0008964/0.0008962, allocations: 90.36 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002795/0.0002796, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1893, allocations: 47.57 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.008305/0.1976, allocations: 9.613 MB / 384.8 MB, free: 37.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005872/0.2035, allocations: 3.46 MB / 388.3 MB, free: 35.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002006/0.2056, allocations: 52.56 kB / 388.3 MB, free: 35.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002106/0.2077, allocations: 0.6508 MB / 389 MB, free: 34.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002854/0.2106, allocations: 0.7418 MB / 389.7 MB, free: 33.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.2117, allocations: 294.9 kB / 390 MB, free: 33.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002986/0.2147, allocations: 3.024 MB / 393 MB, free: 30.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002094/0.2168, allocations: 2.238 MB / 395.3 MB, free: 28.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001192/0.218, allocations: 1.015 MB / 396.3 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001236/0.2192, allocations: 1.413 MB / 397.7 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002419/0.2195, allocations: 152 kB / 397.8 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005394/0.22, allocations: 267.8 kB / 398.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005516/0.2206, allocations: 0.8061 MB / 398.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009311/0.2215, allocations: 1.335 MB / 400.2 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002277/0.2238, allocations: 3.931 MB / 404.2 MB, free: 19.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2238, allocations: 0 / 404.2 MB, free: 19.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2238, allocations: 4 kB / 404.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.998e-05/0.2239, allocations: 0 / 404.2 MB, free: 19.57 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.004373/0.2283, allocations: 2.841 MB / 407 MB, free: 16.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.2283, allocations: 12.03 kB / 407 MB, free: 16.66 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004346/0.2288, allocations: 367 kB / 407.4 MB, free: 16.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006128/0.2294, allocations: 341.1 kB / 407.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/0.2315, allocations: 1.694 MB / 409.4 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/0.2317, allocations: 201.1 kB / 409.6 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002736/0.2319, allocations: 251.9 kB / 409.9 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00428/0.2362, allocations: 3.256 MB / 413.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.742e-05/0.2363, allocations: 8 kB / 413.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001887/0.2365, allocations: 99.98 kB / 413.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.412e-05/0.2366, allocations: 128.9 kB / 413.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003761/0.2404, allocations: 2.732 MB / 416.1 MB, free: 7.441 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01294/0.2533, allocations: 10.57 MB / 426.6 MB, free: 12.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001784/0.2552, allocations: 1.35 MB / 428 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.2563, allocations: 0.7824 MB / 428.8 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002772/0.2566, allocations: 203.2 kB / 429 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.2567, allocations: 47.56 kB / 429 MB, free: 10.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 2.865e-06/0.2567, allocations: 0 / 429 MB, free: 10.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=122): time 0.01505/0.2717, allocations: 7.065 MB / 436.1 MB, free: 2.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.2718, allocations: 68.34 kB / 436.1 MB, free: 2.758 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002897/0.2747, allocations: 1.774 MB / 437.9 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000149/0.2749, allocations: 45.7 kB / 438 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008693/0.2758, allocations: 1.283 MB / 439.2 MB, free: 15.63 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003935/0.2762, allocations: 429.9 kB / 439.7 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.554e-05/0.2763, allocations: 28 kB / 439.7 MB, free: 15.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.2764, allocations: 373.9 kB / 440.1 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.2776, allocations: 0.7613 MB / 440.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/0.2791, allocations: 1.301 MB / 442.1 MB, free: 12.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002779/0.2819, allocations: 2.203 MB / 444.3 MB, free: 10.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.2819, allocations: 4 kB / 444.3 MB, free: 10.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003883/0.2858, allocations: 2.466 MB / 446.8 MB, free: 7.578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.2858, allocations: 12 kB / 446.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-05/0.2859, allocations: 16 kB / 446.8 MB, free: 7.551 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005921/0.2865, allocations: 239.6 kB / 447.1 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.2879, allocations: 423.3 kB / 447.5 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002394/0.2903, allocations: 3.001 MB / 450.5 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/0.2915, allocations: 131.7 kB / 450.6 MB, free: 3.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.2917, allocations: 71.94 kB / 450.7 MB, free: 3.426 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.001291/0.293, allocations: 0.8289 MB / 451.5 MB, free: 2.586 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003514/0.2933, allocations: 181.8 kB / 451.7 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003269/0.2966, allocations: 2.031 MB / 453.7 MB, free: 360 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.2966, allocations: 12 kB / 453.7 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.2967, allocations: 144 / 453.7 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.2967, allocations: 11.95 kB / 453.7 MB, free: 336 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007489/0.3042, allocations: 4.752 MB / 458.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.3042, allocations: 0 / 458.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.3052, allocations: 259.6 kB / 458.7 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005656/0.3058, allocations: 207.5 kB / 458.9 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.528e-05/0.3059, allocations: 27.98 kB / 459 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002349/0.3083, allocations: 2.982 MB / 461.9 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3083, allocations: 4 kB / 462 MB, free: 7.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00443/0.3127, allocations: 3.122 MB / 465.1 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009777/0.3137, allocations: 438.5 kB / 465.5 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003551/0.3141, allocations: 24 kB / 465.5 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.3151, allocations: 95.88 kB / 465.6 MB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/0.3154, allocations: 80.95 kB / 465.7 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.42e-05/0.3155, allocations: 39.92 kB / 465.7 MB, free: 3.867 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002002/0.3175, allocations: 1.208 MB / 466.9 MB, free: 2.668 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3175, allocations: 0 / 466.9 MB, free: 2.668 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001617/0.3191, allocations: 495.9 kB / 467.4 MB, free: 2.184 MB / 346.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 (120): * Single equations (assignments): 116 * 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.004922/0.3241, allocations: 3.752 MB / 471.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003513/0.3276, allocations: 2.333 MB / 473.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.3276, allocations: 0 / 473.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001832/0.3295, allocations: 1.336 MB / 474.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003204/0.3327, allocations: 463.2 kB / 475.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0279/0.3606, allocations: 15.36 MB / 490.7 MB, free: 9.738 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002002/0.3627, allocations: 1.977 MB / 492.6 MB, free: 7.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001563/0.3642, allocations: 1.019 MB / 493.7 MB, free: 6.711 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.3643, allocations: 0 / 493.7 MB, free: 6.711 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.132/6.497, allocations: 89.36 MB / 0.5694 GB, free: 67.16 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches