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.001316/0.001316, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001319/0.001319, allocations: 183 kB / 18.66 MB, free: 4.398 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.258/1.258, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001164/0.001164, allocations: 47.94 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07252/0.0737, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.1535/0.2273, allocations: 10.26 MB / 384.9 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005276/0.2326, allocations: 3.488 MB / 388.4 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.2338, allocations: 46.53 kB / 388.4 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.2356, allocations: 0.7666 MB / 389.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002265/0.2379, allocations: 0.8315 MB / 390 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009244/0.2388, allocations: 428.5 kB / 390.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002848/0.2417, allocations: 2.758 MB / 393.2 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002372/0.244, allocations: 2.365 MB / 395.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001715/0.2458, allocations: 1.266 MB / 396.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0021/0.2479, allocations: 1.575 MB / 398.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005298/0.2484, allocations: 335.2 kB / 398.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009509/0.2494, allocations: 429.8 kB / 399.2 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008444/0.2503, allocations: 0.9476 MB / 400.1 MB, free: 260 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001832/0.2521, allocations: 1.507 MB / 401.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00455/0.2567, allocations: 4.381 MB / 406 MB, free: 12.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2567, allocations: 0 / 406 MB, free: 12.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2567, allocations: 0 / 406 MB, free: 12.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.202e-05/0.2568, allocations: 1.156 kB / 406 MB, free: 12.73 MB / 334.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.006379/0.2632, allocations: 3.058 MB / 409.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.2632, allocations: 9.188 kB / 409.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004526/0.2637, allocations: 325.9 kB / 409.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008732/0.2646, allocations: 307 kB / 409.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002612/0.2672, allocations: 1.534 MB / 411.2 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.2673, allocations: 165.4 kB / 411.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003376/0.2677, allocations: 223.9 kB / 411.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00468/0.2724, allocations: 2.912 MB / 414.5 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.53e-05/0.2724, allocations: 6.031 kB / 414.5 MB, free: 7.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.2727, allocations: 91.36 kB / 414.6 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001218/0.2728, allocations: 121.1 kB / 414.7 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004093/0.2769, allocations: 2.434 MB / 417.2 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01396/0.2909, allocations: 9.012 MB / 426.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.2932, allocations: 1.698 MB / 427.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/0.2948, allocations: 0.976 MB / 428.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002859/0.2951, allocations: 211.1 kB / 429.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.2952, allocations: 43.56 kB / 429.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=105): time 2.685e-06/0.2952, allocations: 0 / 429.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01349/0.3087, allocations: 6.536 MB / 435.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.3087, allocations: 64.41 kB / 435.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/0.3108, allocations: 1.565 MB / 437.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.504e-05/0.3109, allocations: 45.7 kB / 437.3 MB, free: 456 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006897/0.3116, allocations: 1.112 MB / 438.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003182/0.312, allocations: 426.6 kB / 438.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004082/0.3124, allocations: 271.4 kB / 439.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.008e-05/0.3125, allocations: 305.1 kB / 439.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001103/0.3136, allocations: 0.7105 MB / 440.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001344/0.3149, allocations: 1.139 MB / 441.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002552/0.3175, allocations: 1.968 MB / 443.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.3175, allocations: 4 kB / 443.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003973/0.3215, allocations: 2.518 MB / 445.7 MB, free: 7.574 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.3215, allocations: 8 kB / 445.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.309e-05/0.3215, allocations: 19.94 kB / 445.8 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009374/0.3225, allocations: 420.1 kB / 446.2 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.3238, allocations: 347.4 kB / 446.5 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006458/0.3302, allocations: 7.13 MB / 453.7 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.3316, allocations: 103.8 kB / 453.8 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.3317, allocations: 64 kB / 453.8 MB, free: 15.07 MB / 382.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.001134/0.3328, allocations: 0.7205 MB / 454.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002997/0.3332, allocations: 173.8 kB / 454.7 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003602/0.3368, allocations: 2.194 MB / 456.9 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.3368, allocations: 12 kB / 456.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3368, allocations: 4 kB / 456.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.3368, allocations: 7.922 kB / 456.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007263/0.3441, allocations: 4.773 MB / 461.7 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.3441, allocations: 4 kB / 461.7 MB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009319/0.3451, allocations: 219.7 kB / 461.9 MB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.3462, allocations: 459.4 kB / 462.4 MB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.173e-05/0.3463, allocations: 31.98 kB / 462.4 MB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007736/0.354, allocations: 8.674 MB / 471.1 MB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.354, allocations: 4.234 kB / 471.1 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004943/0.359, allocations: 3.23 MB / 474.3 MB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000841/0.3599, allocations: 390.9 kB / 474.7 MB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002676/0.3601, allocations: 35.98 kB / 474.7 MB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009283/0.3611, allocations: 83.91 kB / 474.8 MB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.3613, allocations: 100.7 kB / 474.9 MB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-05/0.3614, allocations: 40 kB / 474.9 MB, free: 9.035 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001528/0.3629, allocations: 1.07 MB / 476 MB, free: 7.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3629, allocations: 3.938 kB / 476 MB, free: 7.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001796/0.3647, allocations: 484 kB / 476.5 MB, free: 7.492 MB / 398.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.005207/0.37, allocations: 3.874 MB / 480.4 MB, free: 3.512 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003575/0.3736, allocations: 2.29 MB / 482.6 MB, free: 1.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/0.3736, allocations: 4 kB / 482.7 MB, free: 1.156 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002266/0.3759, allocations: 1.469 MB / 484.1 MB, free: 15.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/0.3781, allocations: 481.5 kB / 484.6 MB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02559/0.4037, allocations: 17.88 MB / 0.4907 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001526/0.4053, allocations: 1.867 MB / 0.4925 GB, free: 10.63 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.4065, allocations: 390.9 kB / 0.4929 GB, free: 10.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/0.4075, allocations: 0.8703 MB / 0.4937 GB, free: 9.375 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4076, allocations: 4 kB / 0.4937 GB, free: 9.371 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08326/0.4908, allocations: 45.65 MB / 0.5383 GB, free: 11.59 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/12.86, allocations: 12.11 kB / 0.5383 GB, free: 11.57 MB / 478.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