Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 90.59 kB / 17.3 MB, free: 6.34 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.001342/0.001342, allocations: 179 kB / 18.2 MB, free: 5.512 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.551/1.551, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004548/0.0004547, allocations: 12 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1057, allocations: 47.57 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01366/0.1194, allocations: 10.92 MB / 340 MB, free: 8.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008811/0.1283, allocations: 3.864 MB / 343.8 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002319/0.1307, allocations: 59.69 kB / 343.9 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002279/0.133, allocations: 0.7457 MB / 344.7 MB, free: 3.992 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003199/0.1362, allocations: 0.8627 MB / 345.5 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.1373, allocations: 459.5 kB / 346 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004052/0.1413, allocations: 3.617 MB / 349.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002839/0.1442, allocations: 2.494 MB / 352.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001826/0.146, allocations: 1.124 MB / 353.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002255/0.1483, allocations: 1.626 MB / 354.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004701/0.1488, allocations: 172 kB / 355 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000864/0.1496, allocations: 295.8 kB / 355.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008908/0.1505, allocations: 0.9109 MB / 356.2 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001662/0.1522, allocations: 1.563 MB / 357.8 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005218/0.1575, allocations: 5.142 MB / 362.9 MB, free: 1.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.1575, allocations: 0 / 362.9 MB, free: 1.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1575, allocations: 0 / 362.9 MB, free: 1.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001685/0.1577, allocations: 0 / 362.9 MB, free: 1.625 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.007197/0.1649, allocations: 3.186 MB / 366.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.165, allocations: 12.03 kB / 366.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001303/0.1663, allocations: 409.2 kB / 366.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001223/0.1675, allocations: 396.5 kB / 366.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003646/0.1712, allocations: 1.935 MB / 368.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.1714, allocations: 225.8 kB / 369 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004487/0.1718, allocations: 283.9 kB / 369.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006831/0.1787, allocations: 3.708 MB / 373 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.994e-05/0.1788, allocations: 4 kB / 373 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000269/0.1791, allocations: 112 kB / 373.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001674/0.1793, allocations: 145.4 kB / 373.3 MB, free: 7.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006101/0.1854, allocations: 3.109 MB / 376.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2055/0.3909, allocations: 11.69 MB / 388.1 MB, free: 45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003618/0.3946, allocations: 1.902 MB / 390 MB, free: 43.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002051/0.3967, allocations: 1.088 MB / 391.1 MB, free: 43.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002784/0.397, allocations: 209.2 kB / 391.3 MB, free: 43.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.3971, allocations: 48.44 kB / 391.3 MB, free: 43.29 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 4.539e-06/0.3971, allocations: 0 / 391.3 MB, free: 43.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01376/0.4108, allocations: 6.568 MB / 397.9 MB, free: 40.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.4109, allocations: 76.44 kB / 398 MB, free: 39.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002515/0.4134, allocations: 1.989 MB / 399.9 MB, free: 38.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.9e-05/0.4135, allocations: 45.67 kB / 400 MB, free: 38.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006401/0.4142, allocations: 1.404 MB / 401.4 MB, free: 37.62 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.4144, allocations: 490.2 kB / 401.9 MB, free: 37.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/0.4146, allocations: 149.5 kB / 402 MB, free: 37.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.054e-05/0.4147, allocations: 301.1 kB / 402.3 MB, free: 36.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/0.4157, allocations: 0.8217 MB / 403.1 MB, free: 36.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.4169, allocations: 1.384 MB / 404.5 MB, free: 35.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00229/0.4192, allocations: 2.37 MB / 406.9 MB, free: 33.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.769e-06/0.4192, allocations: 7.312 kB / 406.9 MB, free: 33.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003675/0.4229, allocations: 2.848 MB / 409.7 MB, free: 31.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.4229, allocations: 12.44 kB / 409.8 MB, free: 31.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.423, allocations: 20 kB / 409.8 MB, free: 31.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007455/0.4237, allocations: 386.9 kB / 410.2 MB, free: 30.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.425, allocations: 445.7 kB / 410.6 MB, free: 30.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004049/0.4291, allocations: 6.151 MB / 416.7 MB, free: 23.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/0.4309, allocations: 131.8 kB / 416.9 MB, free: 23.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.4311, allocations: 76 kB / 416.9 MB, free: 23.72 MB / 318.1 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 (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 {(2,9,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.001383/0.4324, allocations: 0.9115 MB / 417.9 MB, free: 22.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/0.4328, allocations: 205.4 kB / 418.1 MB, free: 22.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003248/0.4361, allocations: 2.43 MB / 420.5 MB, free: 20.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.4361, allocations: 12 kB / 420.5 MB, free: 20.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.4361, allocations: 6.844 kB / 420.5 MB, free: 20.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.4361, allocations: 7.969 kB / 420.5 MB, free: 20.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007134/0.4432, allocations: 5.534 MB / 426 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.4433, allocations: 4 kB / 426.1 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00095/0.4442, allocations: 263.6 kB / 426.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008427/0.4451, allocations: 400.8 kB / 426.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.038e-05/0.4452, allocations: 35.98 kB / 426.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00489/0.4501, allocations: 7.586 MB / 434.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4501, allocations: 4 kB / 434.3 MB, free: 5.633 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004518/0.4546, allocations: 3.619 MB / 437.9 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.4558, allocations: 470.4 kB / 438.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000277/0.4561, allocations: 39.98 kB / 438.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009855/0.457, allocations: 95.83 kB / 438.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.4573, allocations: 109 kB / 438.6 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.98e-05/0.4574, allocations: 48.11 kB / 438.7 MB, free: 1.145 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001886/0.4593, allocations: 1.361 MB / 440.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4593, allocations: 0 / 440.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002246/0.4615, allocations: 0.5328 MB / 440.6 MB, free: 15.23 MB / 334.1 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 (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 {(2,9,100.0%), (1,1,100.0%), (1,6,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.005755/0.4673, allocations: 4.264 MB / 444.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003725/0.471, allocations: 2.493 MB / 447.3 MB, free: 8.305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/0.4711, allocations: 7.938 kB / 447.3 MB, free: 8.297 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00198/0.4731, allocations: 1.493 MB / 448.8 MB, free: 6.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003772/0.4769, allocations: 0.5126 MB / 449.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0409/0.5178, allocations: 24.99 MB / 474.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001998/0.5198, allocations: 2.193 MB / 476.5 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001781/0.5216, allocations: 0.5056 MB / 477 MB, free: 8.504 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001638/0.5233, allocations: 1.144 MB / 478.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5233, allocations: 0 / 478.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08035/0.6036, allocations: 49.21 MB / 0.515 GB, free: 6.059 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002472/0.6039, allocations: 264.2 kB / 0.5153 GB, free: 5.703 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.248/3.852, allocations: 0 / 0.5153 GB, free: 5.703 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches