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.001408/0.001408, allocations: 112.2 kB / 17.28 MB, free: 6.199 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.001488/0.001489, allocations: 189.3 kB / 18.2 MB, free: 5.277 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.283/1.283, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.00108/0.00108, allocations: 52.12 kB / 280.3 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07954/0.08063, allocations: 46.62 MB / 326.9 MB, free: 4.695 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01094/0.09161, allocations: 10.2 MB / 337.1 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006271/0.09792, allocations: 3.428 MB / 340.5 MB, free: 7 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001377/0.09933, allocations: 47.75 kB / 340.6 MB, free: 6.953 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002058/0.1015, allocations: 0.6915 MB / 341.2 MB, free: 6.258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002563/0.104, allocations: 0.7459 MB / 342 MB, free: 5.508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009007/0.1049, allocations: 379.6 kB / 342.4 MB, free: 5.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.1079, allocations: 2.743 MB / 345.1 MB, free: 2.383 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002567/0.1105, allocations: 2.362 MB / 347.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001745/0.1123, allocations: 1.261 MB / 348.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002203/0.1145, allocations: 1.611 MB / 350.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004748/0.115, allocations: 336 kB / 350.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007563/0.1158, allocations: 435.8 kB / 351.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007507/0.1165, allocations: 0.9428 MB / 352 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001397/0.1179, allocations: 1.501 MB / 353.5 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003485/0.1214, allocations: 4.338 MB / 357.9 MB, free: 5.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.1215, allocations: 0 / 357.9 MB, free: 5.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1215, allocations: 0 / 357.9 MB, free: 5.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.838e-05/0.1215, allocations: 0 / 357.9 MB, free: 5.52 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.005545/0.1271, allocations: 3.042 MB / 360.9 MB, free: 2.414 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.1272, allocations: 12.03 kB / 360.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004341/0.1276, allocations: 328.9 kB / 361.3 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006987/0.1283, allocations: 313.4 kB / 361.6 MB, free: 1.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0022/0.1305, allocations: 1.516 MB / 363.1 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.1307, allocations: 172.4 kB / 363.2 MB, free: 16 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000311/0.131, allocations: 220.1 kB / 363.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004388/0.1354, allocations: 2.913 MB / 366.4 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.568e-05/0.1355, allocations: 7.906 kB / 366.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001976/0.1357, allocations: 95.94 kB / 366.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001027/0.1358, allocations: 112.3 kB / 366.6 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003799/0.1396, allocations: 2.437 MB / 369 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01377/0.1534, allocations: 9.125 MB / 378.1 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1257/0.2791, allocations: 1.688 MB / 379.8 MB, free: 50.56 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001752/0.2809, allocations: 0.9855 MB / 380.8 MB, free: 50.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002432/0.2812, allocations: 205.9 kB / 381 MB, free: 50.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.2812, allocations: 47.58 kB / 381.1 MB, free: 50.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.837e-06/0.2812, allocations: 0 / 381.1 MB, free: 50.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01302/0.2943, allocations: 6.531 MB / 387.6 MB, free: 47.94 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.2943, allocations: 68.25 kB / 387.7 MB, free: 47.87 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002202/0.2965, allocations: 1.572 MB / 389.2 MB, free: 47.26 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.217e-05/0.2966, allocations: 47.27 kB / 389.3 MB, free: 47.21 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006498/0.2973, allocations: 1.104 MB / 390.4 MB, free: 46.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002792/0.2976, allocations: 428.1 kB / 390.8 MB, free: 46.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003919/0.298, allocations: 270.6 kB / 391.1 MB, free: 45.9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.02e-05/0.298, allocations: 302.1 kB / 391.4 MB, free: 45.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000973/0.299, allocations: 0.7068 MB / 392.1 MB, free: 45.37 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.3001, allocations: 1.145 MB / 393.2 MB, free: 44.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002237/0.3024, allocations: 1.959 MB / 395.2 MB, free: 43.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.3024, allocations: 4.125 kB / 395.2 MB, free: 43.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003584/0.306, allocations: 2.522 MB / 397.7 MB, free: 42.35 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.306, allocations: 12.69 kB / 397.7 MB, free: 42.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.306, allocations: 15.81 kB / 397.7 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008114/0.3069, allocations: 427.4 kB / 398.1 MB, free: 42.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.308, allocations: 345.8 kB / 398.5 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005157/0.3131, allocations: 7.135 MB / 405.6 MB, free: 36.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.3145, allocations: 111.9 kB / 405.7 MB, free: 36.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.496e-05/0.3146, allocations: 60.81 kB / 405.8 MB, free: 36.13 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.0009772/0.3156, allocations: 0.7197 MB / 406.5 MB, free: 35.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002501/0.3158, allocations: 169.8 kB / 406.7 MB, free: 35.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002866/0.3187, allocations: 2.178 MB / 408.8 MB, free: 33.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.3187, allocations: 19.94 kB / 408.9 MB, free: 33.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3187, allocations: 4 kB / 408.9 MB, free: 33.1 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.3188, allocations: 9.047 kB / 408.9 MB, free: 33.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005964/0.3247, allocations: 4.792 MB / 413.7 MB, free: 28.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3248, allocations: 4 kB / 413.7 MB, free: 28.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008469/0.3256, allocations: 224.2 kB / 413.9 MB, free: 27.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009534/0.3266, allocations: 450.9 kB / 414.3 MB, free: 27.51 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.017e-05/0.3267, allocations: 35.98 kB / 414.4 MB, free: 27.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005496/0.3322, allocations: 8.688 MB / 423.1 MB, free: 18.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3322, allocations: 4 kB / 423.1 MB, free: 18.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004059/0.3363, allocations: 3.22 MB / 426.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000735/0.337, allocations: 386.9 kB / 426.7 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/0.3373, allocations: 42.61 kB / 426.7 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008446/0.3381, allocations: 83.91 kB / 426.8 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002162/0.3384, allocations: 103.1 kB / 426.9 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.705e-05/0.3384, allocations: 36 kB / 426.9 MB, free: 14.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001138/0.3396, allocations: 1.07 MB / 428 MB, free: 13.21 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3396, allocations: 4 kB / 428 MB, free: 13.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001442/0.341, allocations: 491.1 kB / 428.5 MB, free: 12.73 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.003976/0.345, allocations: 3.86 MB / 432.3 MB, free: 8.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003868/0.3489, allocations: 2.788 MB / 435.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.3489, allocations: 0 / 435.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001812/0.3507, allocations: 1.485 MB / 436.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002069/0.3528, allocations: 488.9 kB / 437.1 MB, free: 3.93 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03001/0.3828, allocations: 20.57 MB / 457.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001458/0.3843, allocations: 1.871 MB / 459.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001234/0.3856, allocations: 382.9 kB / 459.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/0.3866, allocations: 0.8781 MB / 460.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3866, allocations: 0 / 460.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07517/0.4618, allocations: 44.05 MB / 0.493 GB, free: 14.59 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002362/0.4621, allocations: 254.7 kB / 0.4932 GB, free: 14.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.898/3.36, allocations: 0 / 0.4932 GB, free: 14.27 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","../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