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.00102/0.001019, allocations: 113.3 kB / 17.28 MB, free: 6.301 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.001059/0.001059, allocations: 189.3 kB / 18.19 MB, free: 5.383 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.247/1.247, 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.001248/0.001248, allocations: 51.92 kB / 280.3 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09714/0.09841, allocations: 46.63 MB / 326.9 MB, free: 4.684 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01254/0.111, allocations: 11.5 MB / 338.4 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007571/0.1186, allocations: 3.884 MB / 342.3 MB, free: 5.223 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002138/0.1208, allocations: 59.69 kB / 342.3 MB, free: 5.164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002611/0.1235, allocations: 0.7652 MB / 343.1 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003627/0.1271, allocations: 0.8432 MB / 343.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001701/0.1288, allocations: 471.5 kB / 344.4 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004503/0.1334, allocations: 3.297 MB / 347.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003908/0.1373, allocations: 2.981 MB / 350.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002464/0.1398, allocations: 1.53 MB / 352.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003241/0.143, allocations: 2.012 MB / 354.2 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006335/0.1437, allocations: 424 kB / 354.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001052/0.1447, allocations: 0.5193 MB / 355.2 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001075/0.1458, allocations: 1.223 MB / 356.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001877/0.1477, allocations: 1.878 MB / 358.3 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005131/0.1529, allocations: 5.44 MB / 363.7 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1529, allocations: 0 / 363.7 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1529, allocations: 0 / 363.7 MB, free: 15.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001024/0.153, allocations: 0 / 363.7 MB, free: 15.68 MB / 318.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.007035/0.16, allocations: 3.806 MB / 367.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.1601, allocations: 11.89 kB / 367.5 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004939/0.1606, allocations: 413.2 kB / 367.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009322/0.1615, allocations: 392.5 kB / 368.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003034/0.1646, allocations: 1.939 MB / 370.2 MB, free: 8.996 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.1648, allocations: 221.7 kB / 370.5 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003712/0.1652, allocations: 283.9 kB / 370.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00556/0.1707, allocations: 3.701 MB / 374.4 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.274e-05/0.1708, allocations: 0 / 374.4 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002489/0.1711, allocations: 116 kB / 374.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001351/0.1712, allocations: 149.5 kB / 374.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00491/0.1761, allocations: 3.109 MB / 377.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1702/0.3464, allocations: 11.64 MB / 389.4 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/0.3488, allocations: 1.902 MB / 391.3 MB, free: 44.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001773/0.3506, allocations: 1.09 MB / 392.4 MB, free: 43.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003525/0.351, allocations: 206.4 kB / 392.6 MB, free: 43.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.351, allocations: 44.47 kB / 392.7 MB, free: 43.71 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 6.162e-06/0.3511, allocations: 0 / 392.7 MB, free: 43.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01203/0.3631, allocations: 6.519 MB / 399.2 MB, free: 40.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.3632, allocations: 72.45 kB / 399.3 MB, free: 39.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002579/0.3658, allocations: 1.987 MB / 401.3 MB, free: 38.87 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.3659, allocations: 49.33 kB / 401.3 MB, free: 38.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006066/0.3665, allocations: 1.417 MB / 402.7 MB, free: 37.58 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002701/0.3668, allocations: 483.6 kB / 403.2 MB, free: 37.17 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004148/0.3672, allocations: 326.4 kB / 403.5 MB, free: 36.99 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.732e-05/0.3672, allocations: 308.9 kB / 403.8 MB, free: 36.69 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.3683, allocations: 0.8218 MB / 404.6 MB, free: 36.28 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001175/0.3695, allocations: 1.371 MB / 406 MB, free: 35.15 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002221/0.3717, allocations: 2.366 MB / 408.4 MB, free: 32.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.3717, allocations: 4 kB / 408.4 MB, free: 32.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003622/0.3753, allocations: 2.856 MB / 411.2 MB, free: 29.85 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.3754, allocations: 12 kB / 411.2 MB, free: 29.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.207e-05/0.3754, allocations: 23.66 kB / 411.3 MB, free: 29.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007586/0.3762, allocations: 389.4 kB / 411.6 MB, free: 29.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.3775, allocations: 431.3 kB / 412.1 MB, free: 29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004236/0.3818, allocations: 6.707 MB / 418.8 MB, free: 21.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.3834, allocations: 135.7 kB / 418.9 MB, free: 21.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/0.3836, allocations: 75.98 kB / 419 MB, free: 21.69 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.00142/0.385, allocations: 0.9116 MB / 419.9 MB, free: 20.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004611/0.3855, allocations: 201.5 kB / 420.1 MB, free: 20.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003234/0.3887, allocations: 2.429 MB / 422.5 MB, free: 18.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.3887, allocations: 12 kB / 422.5 MB, free: 18.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.3887, allocations: 6.734 kB / 422.5 MB, free: 18.08 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.3888, allocations: 7.969 kB / 422.5 MB, free: 18.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007483/0.3962, allocations: 5.524 MB / 428.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/0.3963, allocations: 4 kB / 428.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009578/0.3973, allocations: 255.6 kB / 428.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008451/0.3981, allocations: 407.9 kB / 428.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.948e-05/0.3982, allocations: 47.92 kB / 428.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005052/0.4033, allocations: 8.255 MB / 437 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.4033, allocations: 4 kB / 437 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004601/0.4079, allocations: 3.612 MB / 440.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.409, allocations: 470.4 kB / 441.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004979/0.4095, allocations: 37.81 kB / 441.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.4107, allocations: 95.88 kB / 441.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002582/0.411, allocations: 105.1 kB / 441.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-05/0.4111, allocations: 43.98 kB / 441.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001988/0.4131, allocations: 1.361 MB / 442.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4131, allocations: 0 / 442.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00222/0.4153, allocations: 0.5312 MB / 443.3 MB, free: 12.52 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.005841/0.4212, allocations: 4.253 MB / 447.5 MB, free: 8.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005627/0.4268, allocations: 3.197 MB / 450.7 MB, free: 4.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.4269, allocations: 4 kB / 450.7 MB, free: 4.918 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002074/0.429, allocations: 1.492 MB / 452.2 MB, free: 3.383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003227/0.4322, allocations: 0.5361 MB / 452.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04443/0.4766, allocations: 24.88 MB / 477.6 MB, free: 7.949 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002823/0.4795, allocations: 2.197 MB / 479.8 MB, free: 5.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001924/0.4815, allocations: 0.4978 MB / 480.3 MB, free: 5.219 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0017/0.4832, allocations: 1.14 MB / 481.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4832, allocations: 0 / 481.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1023/0.5855, allocations: 51.08 MB / 0.5201 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000285/0.5859, allocations: 261 kB / 0.5203 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.893/3.479, allocations: 0 / 0.5203 GB, free: 0.5508 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