Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 98.88 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.263/1.263, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001417, allocations: 52.14 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08755/0.08898, allocations: 46.62 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01342/0.1025, allocations: 10.26 MB / 337.6 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008528/0.111, allocations: 3.479 MB / 341.1 MB, free: 6.582 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00259/0.1137, allocations: 51.75 kB / 341.2 MB, free: 6.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003328/0.1171, allocations: 0.7685 MB / 341.9 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004804/0.1219, allocations: 0.8385 MB / 342.8 MB, free: 4.914 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002093/0.124, allocations: 427.4 kB / 343.2 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005519/0.1296, allocations: 2.751 MB / 346 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004253/0.1338, allocations: 2.366 MB / 348.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002619/0.1365, allocations: 1.242 MB / 349.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003343/0.1398, allocations: 1.584 MB / 351.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001356/0.1412, allocations: 340 kB / 351.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001723/0.143, allocations: 427.8 kB / 351.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001716/0.1447, allocations: 0.9389 MB / 352.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0025/0.1472, allocations: 1.505 MB / 354.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004522/0.1517, allocations: 4.326 MB / 358.7 MB, free: 4.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.1518, allocations: 4 kB / 358.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1518, allocations: 0 / 358.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.1519, allocations: 0 / 358.7 MB, free: 4.926 MB / 302.1 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.006175/0.1581, allocations: 3.042 MB / 361.7 MB, free: 1.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.1581, allocations: 16.02 kB / 361.7 MB, free: 1.805 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003967/0.1585, allocations: 324.9 kB / 362 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007958/0.1593, allocations: 317.4 kB / 362.4 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002477/0.1618, allocations: 1.516 MB / 363.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001981/0.162, allocations: 176.3 kB / 364 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003576/0.1624, allocations: 219.9 kB / 364.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004772/0.1672, allocations: 2.909 MB / 367.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.932e-05/0.1673, allocations: 7.906 kB / 367.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002051/0.1675, allocations: 95.94 kB / 367.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001324/0.1676, allocations: 112.3 kB / 367.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004504/0.1721, allocations: 2.437 MB / 369.8 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01487/0.187, allocations: 9.117 MB / 378.9 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1881/0.3752, allocations: 1.695 MB / 380.6 MB, free: 50.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001699/0.3769, allocations: 0.9862 MB / 381.6 MB, free: 50.65 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000223/0.3772, allocations: 209.3 kB / 381.8 MB, free: 50.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.3772, allocations: 46.05 kB / 381.9 MB, free: 50.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.126e-06/0.3772, allocations: 0.75 kB / 381.9 MB, free: 50.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01227/0.3895, allocations: 6.526 MB / 388.4 MB, free: 47.91 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.3895, allocations: 63.47 kB / 388.4 MB, free: 47.85 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.3914, allocations: 1.571 MB / 390 MB, free: 47.24 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.393e-05/0.3915, allocations: 46.3 kB / 390.1 MB, free: 47.19 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000512/0.392, allocations: 1.101 MB / 391.2 MB, free: 46.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002132/0.3922, allocations: 430.5 kB / 391.6 MB, free: 46.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003263/0.3925, allocations: 275.6 kB / 391.9 MB, free: 45.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.271e-05/0.3926, allocations: 301.1 kB / 392.1 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008692/0.3935, allocations: 0.7089 MB / 392.9 MB, free: 45.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.3945, allocations: 1.144 MB / 394 MB, free: 44.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/0.3967, allocations: 1.967 MB / 396 MB, free: 43.38 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.3968, allocations: 4.125 kB / 396 MB, free: 43.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003093/0.3998, allocations: 2.51 MB / 398.5 MB, free: 42.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3999, allocations: 15.38 kB / 398.5 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.3999, allocations: 12.19 kB / 398.5 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007605/0.4007, allocations: 427.1 kB / 398.9 MB, free: 42.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.4018, allocations: 348.2 kB / 399.3 MB, free: 42.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004625/0.4064, allocations: 7.141 MB / 406.4 MB, free: 35.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.4075, allocations: 111.8 kB / 406.5 MB, free: 35.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.631e-05/0.4076, allocations: 68.97 kB / 406.6 MB, free: 35.57 MB / 318.1 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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009436/0.4085, allocations: 0.7189 MB / 407.3 MB, free: 34.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002247/0.4088, allocations: 169.8 kB / 407.5 MB, free: 34.67 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002809/0.4116, allocations: 2.182 MB / 409.7 MB, free: 32.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.4116, allocations: 23.86 kB / 409.7 MB, free: 32.42 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4116, allocations: 4 kB / 409.7 MB, free: 32.42 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.4116, allocations: 7.984 kB / 409.7 MB, free: 32.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005828/0.4175, allocations: 4.778 MB / 414.5 MB, free: 27.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.4175, allocations: 4 kB / 414.5 MB, free: 27.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000802/0.4183, allocations: 227.7 kB / 414.7 MB, free: 27.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009213/0.4192, allocations: 454.9 kB / 415.1 MB, free: 26.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.301e-05/0.4193, allocations: 39.98 kB / 415.2 MB, free: 26.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005899/0.4252, allocations: 8.678 MB / 423.9 MB, free: 17.58 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.4252, allocations: 4 kB / 423.9 MB, free: 17.57 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004531/0.4298, allocations: 3.22 MB / 427.1 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006921/0.4305, allocations: 398.9 kB / 427.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002193/0.4307, allocations: 32 kB / 427.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008551/0.4316, allocations: 83.89 kB / 427.6 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002376/0.4318, allocations: 104.8 kB / 427.7 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.242e-05/0.4319, allocations: 39.98 kB / 427.7 MB, free: 13.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001422/0.4333, allocations: 1.07 MB / 428.8 MB, free: 12.53 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4334, allocations: 0 / 428.8 MB, free: 12.53 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001726/0.4351, allocations: 486.3 kB / 429.3 MB, free: 12.05 MB / 318.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004194/0.4393, allocations: 3.869 MB / 433.1 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004052/0.4434, allocations: 2.78 MB / 435.9 MB, free: 5.258 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.4434, allocations: 0 / 435.9 MB, free: 5.258 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001918/0.4453, allocations: 1.488 MB / 437.4 MB, free: 3.723 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002091/0.4474, allocations: 480 kB / 437.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02594/0.4734, allocations: 19.64 MB / 457.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001705/0.4751, allocations: 1.867 MB / 459.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001327/0.4765, allocations: 390.9 kB / 459.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001046/0.4775, allocations: 0.8742 MB / 460.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4775, allocations: 0 / 460.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08033/0.5579, allocations: 44.21 MB / 0.493 GB, free: 14.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.16, allocations: 16.11 kB / 0.493 GB, free: 14.62 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches