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_Inverter.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_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",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.000902/0.000902, allocations: 174.8 kB / 16.72 MB, free: 5.078 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.189/1.189, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007501/0.0007501, allocations: 88.92 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002933, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1842, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.006842/0.191, allocations: 9.081 MB / 384.3 MB, free: 38.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004362/0.1954, allocations: 3.272 MB / 387.5 MB, free: 35.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007638/0.1962, allocations: 47.34 kB / 387.6 MB, free: 35.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.1974, allocations: 0.6187 MB / 388.2 MB, free: 35.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001393/0.1988, allocations: 0.7114 MB / 388.9 MB, free: 34.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005756/0.1994, allocations: 272.2 kB / 389.2 MB, free: 34.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001844/0.2012, allocations: 2.844 MB / 392 MB, free: 31.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001564/0.2028, allocations: 1.988 MB / 394 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008722/0.2037, allocations: 0.9454 MB / 395 MB, free: 28.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.2047, allocations: 1.284 MB / 396.2 MB, free: 27.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002117/0.2049, allocations: 140 kB / 396.4 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004744/0.2054, allocations: 251.8 kB / 396.6 MB, free: 27.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000466/0.2059, allocations: 0.7086 MB / 397.3 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007943/0.2067, allocations: 1.218 MB / 398.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001812/0.2085, allocations: 3.518 MB / 402.1 MB, free: 21.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2085, allocations: 3.938 kB / 402.1 MB, free: 21.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2085, allocations: 4 kB / 402.1 MB, free: 21.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.663e-05/0.2086, allocations: 0 / 402.1 MB, free: 21.66 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.003721/0.2123, allocations: 2.586 MB / 404.7 MB, free: 19.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2123, allocations: 12.03 kB / 404.7 MB, free: 19 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003042/0.2126, allocations: 325 kB / 405 MB, free: 18.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005659/0.2132, allocations: 305.5 kB / 405.3 MB, free: 18.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001768/0.215, allocations: 1.513 MB / 406.8 MB, free: 16.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.2151, allocations: 184.3 kB / 407 MB, free: 16.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002333/0.2154, allocations: 223.9 kB / 407.2 MB, free: 16.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003589/0.219, allocations: 2.905 MB / 410.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.788e-05/0.219, allocations: 4 kB / 410.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001673/0.2192, allocations: 91.98 kB / 410.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.418e-05/0.2193, allocations: 116.3 kB / 410.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003229/0.2225, allocations: 2.437 MB / 412.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009948/0.2325, allocations: 9.168 MB / 421.9 MB, free: 1.285 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001833/0.2343, allocations: 1.715 MB / 423.6 MB, free: 15.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.236, allocations: 1.007 MB / 424.6 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002652/0.2363, allocations: 195.2 kB / 424.8 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.2363, allocations: 47.56 kB / 424.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=105): time 2.946e-06/0.2363, allocations: 0 / 424.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=122): time 0.01304/0.2494, allocations: 6.669 MB / 431.5 MB, free: 7.332 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.2494, allocations: 68.34 kB / 431.6 MB, free: 7.254 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/0.2514, allocations: 1.553 MB / 433.2 MB, free: 5.691 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.358e-05/0.2515, allocations: 45.7 kB / 433.2 MB, free: 5.641 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007351/0.2522, allocations: 1.108 MB / 434.3 MB, free: 4.516 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003178/0.2525, allocations: 433.8 kB / 434.7 MB, free: 4.086 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.806e-05/0.2526, allocations: 32 kB / 434.8 MB, free: 4.055 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2528, allocations: 361.9 kB / 435.1 MB, free: 3.695 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.2538, allocations: 0.7144 MB / 435.8 MB, free: 2.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.2552, allocations: 1.143 MB / 437 MB, free: 1.656 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002527/0.2577, allocations: 1.98 MB / 439 MB, free: 15.49 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.2577, allocations: 4 kB / 439 MB, free: 15.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003754/0.2615, allocations: 2.526 MB / 441.5 MB, free: 12.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.2615, allocations: 8 kB / 441.5 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/0.2615, allocations: 16 kB / 441.5 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009311/0.2625, allocations: 421.2 kB / 441.9 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.2637, allocations: 363.4 kB / 442.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006054/0.2698, allocations: 6.557 MB / 448.8 MB, free: 5.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.271, allocations: 111.8 kB / 449 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.2712, allocations: 64 kB / 449 MB, free: 4.988 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (169): * Single equations (assignments): 165 * 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 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001119/0.2723, allocations: 0.716 MB / 449.7 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002419/0.2725, allocations: 169.9 kB / 449.9 MB, free: 4.094 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003505/0.276, allocations: 2.217 MB / 452.1 MB, free: 1.828 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/0.2761, allocations: 12 kB / 452.1 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.2761, allocations: 4 kB / 452.1 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.2761, allocations: 3.984 kB / 452.1 MB, free: 1.809 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007017/0.2831, allocations: 4.793 MB / 456.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.2831, allocations: 4 kB / 456.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008983/0.2841, allocations: 232.2 kB / 457.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.2851, allocations: 459 kB / 457.6 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.792e-05/0.2852, allocations: 39.92 kB / 457.6 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00705/0.2923, allocations: 7.963 MB / 465.6 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.2923, allocations: 7.938 kB / 465.6 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004663/0.297, allocations: 3.244 MB / 468.9 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007338/0.2977, allocations: 402.8 kB / 469.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002916/0.298, allocations: 35.98 kB / 469.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009855/0.299, allocations: 95.84 kB / 469.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/0.2993, allocations: 104.7 kB / 469.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.903e-05/0.2994, allocations: 36 kB / 469.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001581/0.301, allocations: 1.07 MB / 470.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.301, allocations: 0 / 470.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001522/0.3025, allocations: 487.9 kB / 471.1 MB, free: 14.05 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (108): * Single equations (assignments): 104 * 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 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005078/0.3076, allocations: 3.882 MB / 474.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003443/0.3111, allocations: 2.289 MB / 477.2 MB, free: 7.711 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.3111, allocations: 4 kB / 477.2 MB, free: 7.707 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002175/0.3133, allocations: 1.482 MB / 478.7 MB, free: 6.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002763/0.316, allocations: 448 kB / 479.2 MB, free: 5.746 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02361/0.3397, allocations: 14.39 MB / 493.6 MB, free: 6.484 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001659/0.3413, allocations: 1.835 MB / 495.4 MB, free: 4.621 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00115/0.3425, allocations: 0.8859 MB / 496.3 MB, free: 3.734 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.3425, allocations: 0 / 496.3 MB, free: 3.734 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.261/6.603, allocations: 80.19 MB / 0.563 GB, free: 72.75 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_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_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches