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_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",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.0007988/0.0007989, allocations: 175.2 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.163/1.163, allocations: 205.4 MB / 222.9 MB, free: 8.941 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.0006641/0.0006641, allocations: 88.78 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002677/0.0002678, allocations: 12 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1797, allocations: 47.57 MB / 375.2 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.007766/0.1875, allocations: 10.24 MB / 385.4 MB, free: 37.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00507/0.1926, allocations: 3.736 MB / 389.2 MB, free: 34.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009647/0.1936, allocations: 57.72 kB / 389.2 MB, free: 34.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.1948, allocations: 0.6793 MB / 389.9 MB, free: 33.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001654/0.1965, allocations: 0.8166 MB / 390.7 MB, free: 33.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006482/0.1972, allocations: 335.5 kB / 391 MB, free: 32.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002171/0.1993, allocations: 3.332 MB / 394.4 MB, free: 29.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001962/0.2013, allocations: 2.503 MB / 396.9 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009826/0.2023, allocations: 1.109 MB / 398 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001248/0.2036, allocations: 1.572 MB / 399.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002561/0.2038, allocations: 168 kB / 399.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005557/0.2044, allocations: 291.7 kB / 400 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005964/0.205, allocations: 0.9073 MB / 400.9 MB, free: 22.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000931/0.206, allocations: 1.486 MB / 402.4 MB, free: 21.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00228/0.2082, allocations: 4.422 MB / 406.8 MB, free: 16.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2083, allocations: 0 / 406.8 MB, free: 16.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2083, allocations: 0 / 406.8 MB, free: 16.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.961e-05/0.2083, allocations: 0 / 406.8 MB, free: 16.91 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.004511/0.2128, allocations: 3.194 MB / 410 MB, free: 13.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2129, allocations: 12.03 kB / 410 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003788/0.2133, allocations: 409.2 kB / 410.4 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006911/0.214, allocations: 388.6 kB / 410.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002264/0.2162, allocations: 1.942 MB / 412.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.2164, allocations: 217.8 kB / 413 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002944/0.2167, allocations: 291.9 kB / 413.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004492/0.2212, allocations: 3.673 MB / 416.9 MB, free: 6.598 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.884e-05/0.2212, allocations: 11.92 kB / 416.9 MB, free: 6.586 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002078/0.2215, allocations: 112 kB / 417 MB, free: 6.477 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.587e-05/0.2216, allocations: 141.5 kB / 417.2 MB, free: 6.336 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003881/0.2254, allocations: 3.09 MB / 420.3 MB, free: 3.234 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01489/0.2403, allocations: 11.71 MB / 432 MB, free: 7.188 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/0.2426, allocations: 1.895 MB / 433.9 MB, free: 5.188 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001616/0.2442, allocations: 1.08 MB / 435 MB, free: 4.102 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002735/0.2445, allocations: 215.2 kB / 435.2 MB, free: 3.852 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.2445, allocations: 47.5 kB / 435.2 MB, free: 3.797 MB / 314.7 MB Notification: Performance of pre-optimization done (n=125): time 3.327e-06/0.2445, allocations: 4 kB / 435.2 MB, free: 3.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=140): time 0.01142/0.256, allocations: 6.553 MB / 441.8 MB, free: 13.1 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.256, allocations: 64.72 kB / 441.8 MB, free: 13.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002596/0.2586, allocations: 1.982 MB / 443.8 MB, free: 11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.425e-05/0.2587, allocations: 49.7 kB / 443.9 MB, free: 10.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009082/0.2596, allocations: 1.401 MB / 445.3 MB, free: 9.527 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003456/0.26, allocations: 492.9 kB / 445.7 MB, free: 9.039 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.402e-05/0.2601, allocations: 40 kB / 445.8 MB, free: 9 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2603, allocations: 377.8 kB / 446.1 MB, free: 8.625 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.2615, allocations: 0.8159 MB / 447 MB, free: 7.809 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.263, allocations: 1.375 MB / 448.3 MB, free: 6.191 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00303/0.266, allocations: 2.353 MB / 450.7 MB, free: 3.594 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.266, allocations: 4 kB / 450.7 MB, free: 3.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004375/0.2704, allocations: 2.843 MB / 453.5 MB, free: 0.707 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.2705, allocations: 19.42 kB / 453.6 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.415e-05/0.2705, allocations: 16 kB / 453.6 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008653/0.2714, allocations: 395.1 kB / 454 MB, free: 284 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.2728, allocations: 435.3 kB / 454.4 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005554/0.2784, allocations: 6.143 MB / 460.5 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.2798, allocations: 131.8 kB / 460.7 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.2799, allocations: 76 kB / 460.7 MB, free: 9.102 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * 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: 3 * 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: 3 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001486/0.2814, allocations: 0.907 MB / 461.6 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000401/0.2819, allocations: 205.5 kB / 461.8 MB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003899/0.2858, allocations: 2.429 MB / 464.3 MB, free: 5.508 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.2858, allocations: 12 kB / 464.3 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.2858, allocations: 4 kB / 464.3 MB, free: 5.492 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.2858, allocations: 11.97 kB / 464.3 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008736/0.2946, allocations: 5.524 MB / 469.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.2946, allocations: 4.531 kB / 469.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.2956, allocations: 263.6 kB / 470.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009693/0.2966, allocations: 407.1 kB / 470.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.2967, allocations: 39.98 kB / 470.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006523/0.3033, allocations: 7.58 MB / 478.1 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3033, allocations: 4 kB / 478.1 MB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00503/0.3083, allocations: 3.606 MB / 481.7 MB, free: 3.266 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009291/0.3093, allocations: 482.3 kB / 482.2 MB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003817/0.3097, allocations: 32 kB / 482.2 MB, free: 2.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.3108, allocations: 88.08 kB / 482.3 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002594/0.3111, allocations: 109 kB / 482.4 MB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.193e-05/0.3112, allocations: 47.92 kB / 482.4 MB, free: 2.504 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002506/0.3137, allocations: 1.35 MB / 483.8 MB, free: 1.133 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3137, allocations: 0 / 483.8 MB, free: 1.133 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002053/0.3157, allocations: 0.543 MB / 484.3 MB, free: 0.5898 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.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 (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0055/0.3212, allocations: 4.258 MB / 488.6 MB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003525/0.3248, allocations: 2.472 MB / 491.1 MB, free: 9.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3248, allocations: 0 / 491.1 MB, free: 9.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001933/0.3267, allocations: 1.496 MB / 492.6 MB, free: 8.137 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003774/0.3305, allocations: 0.5056 MB / 493.1 MB, free: 7.637 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0295/0.3601, allocations: 17.74 MB / 0.4988 GB, free: 4.637 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002174/0.3623, allocations: 2.155 MB / 0.5009 GB, free: 2.457 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001531/0.3638, allocations: 1.155 MB / 0.5021 GB, free: 1.301 MB / 394.7 MB Notification: Performance of SimCode: time 7.62e-07/0.3638, allocations: 0 / 0.5021 GB, free: 1.301 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.495/6.858, allocations: 99.77 MB / 0.5995 GB, free: 33.38 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_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_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches