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.001111/0.001111, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001004/0.001004, allocations: 190 kB / 18.07 MB, free: 5.414 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.352/1.352, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001218/0.001218, allocations: 52.3 kB / 280.1 MB, free: 3.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0962/0.09743, allocations: 46.63 MB / 326.7 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01346/0.1109, allocations: 11.49 MB / 338.2 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008303/0.1193, allocations: 3.907 MB / 342.1 MB, free: 5.305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002856/0.1222, allocations: 63.62 kB / 342.2 MB, free: 5.242 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002795/0.125, allocations: 0.7535 MB / 342.9 MB, free: 4.484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00393/0.129, allocations: 0.8588 MB / 343.8 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.1303, allocations: 467.5 kB / 344.2 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004508/0.1348, allocations: 3.613 MB / 347.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002991/0.1378, allocations: 2.521 MB / 350.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001995/0.1398, allocations: 1.335 MB / 351.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002595/0.1424, allocations: 1.895 MB / 353.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004401/0.1429, allocations: 256 kB / 353.9 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008763/0.1438, allocations: 379.8 kB / 354.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001045/0.1448, allocations: 1.036 MB / 355.3 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002156/0.147, allocations: 1.714 MB / 357 MB, free: 6.336 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005116/0.1521, allocations: 5.311 MB / 362.3 MB, free: 1.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1522, allocations: 0 / 362.3 MB, free: 1.008 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1522, allocations: 0 / 362.3 MB, free: 1.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001016/0.1523, allocations: 0 / 362.3 MB, free: 1.008 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.008316/0.1606, allocations: 3.806 MB / 366.1 MB, free: 13.13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.384e-05/0.1607, allocations: 12.03 kB / 366.1 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005912/0.1613, allocations: 409.2 kB / 366.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/0.1624, allocations: 396.6 kB / 366.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003008/0.1654, allocations: 1.931 MB / 368.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/0.1656, allocations: 233.8 kB / 369 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003601/0.166, allocations: 279.9 kB / 369.3 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005806/0.1718, allocations: 3.701 MB / 373 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-05/0.1719, allocations: 4 kB / 373 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002417/0.1721, allocations: 112 kB / 373.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001263/0.1722, allocations: 137.5 kB / 373.3 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004987/0.1772, allocations: 3.106 MB / 376.4 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1918/0.369, allocations: 11.65 MB / 388 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002566/0.3716, allocations: 1.9 MB / 389.9 MB, free: 44.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001898/0.3735, allocations: 1.085 MB / 391 MB, free: 44.26 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003251/0.3739, allocations: 206.3 kB / 391.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.835e-05/0.3739, allocations: 52.91 kB / 391.3 MB, free: 44.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.396e-06/0.374, allocations: 5.75 kB / 391.3 MB, free: 44.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.0127/0.3867, allocations: 6.522 MB / 397.8 MB, free: 40.55 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.3867, allocations: 68.41 kB / 397.9 MB, free: 40.49 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003088/0.3898, allocations: 1.995 MB / 399.8 MB, free: 39.4 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001458/0.39, allocations: 47.17 kB / 399.9 MB, free: 39.36 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007662/0.3908, allocations: 1.403 MB / 401.3 MB, free: 38.13 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000319/0.3911, allocations: 494.7 kB / 401.8 MB, free: 37.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004584/0.3916, allocations: 326.7 kB / 402.1 MB, free: 37.53 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.217e-05/0.3916, allocations: 305.1 kB / 402.4 MB, free: 37.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.3927, allocations: 0.8177 MB / 403.2 MB, free: 36.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001307/0.394, allocations: 1.374 MB / 404.6 MB, free: 35.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002285/0.3963, allocations: 2.362 MB / 407 MB, free: 33.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/0.3963, allocations: 8 kB / 407 MB, free: 33.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003786/0.4001, allocations: 2.858 MB / 409.8 MB, free: 31.01 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.4001, allocations: 15.83 kB / 409.8 MB, free: 31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/0.4002, allocations: 16 kB / 409.8 MB, free: 30.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007882/0.401, allocations: 387.6 kB / 410.2 MB, free: 30.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.4023, allocations: 435.3 kB / 410.7 MB, free: 30.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004073/0.4064, allocations: 6.149 MB / 416.8 MB, free: 23.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.4081, allocations: 127.7 kB / 416.9 MB, free: 23.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.4082, allocations: 80 kB / 417 MB, free: 23.43 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.001543/0.4098, allocations: 0.9077 MB / 417.9 MB, free: 22.51 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003496/0.4102, allocations: 205.5 kB / 418.1 MB, free: 22.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003123/0.4133, allocations: 2.432 MB / 420.5 MB, free: 19.83 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.4133, allocations: 12 kB / 420.6 MB, free: 19.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4133, allocations: 8 kB / 420.6 MB, free: 19.81 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.4133, allocations: 7.969 kB / 420.6 MB, free: 19.8 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007328/0.4207, allocations: 5.515 MB / 426.1 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.4207, allocations: 4.531 kB / 426.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009475/0.4216, allocations: 263.6 kB / 426.4 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008575/0.4225, allocations: 403.1 kB / 426.7 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.707e-05/0.4226, allocations: 41.84 kB / 426.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00476/0.4274, allocations: 7.574 MB / 434.4 MB, free: 5.363 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.4274, allocations: 15.88 kB / 434.4 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004678/0.4321, allocations: 3.604 MB / 438 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/0.4334, allocations: 462.5 kB / 438.4 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002826/0.4337, allocations: 35.98 kB / 438.5 MB, free: 1.133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009981/0.4347, allocations: 87.89 kB / 438.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.4349, allocations: 109 kB / 438.7 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.893e-05/0.435, allocations: 43.98 kB / 438.7 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001945/0.437, allocations: 1.362 MB / 440.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.437, allocations: 0 / 440.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002579/0.4396, allocations: 0.536 MB / 440.6 MB, free: 14.98 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.005998/0.4456, allocations: 4.268 MB / 444.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00437/0.4499, allocations: 2.484 MB / 447.4 MB, free: 8.062 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.83e-06/0.45, allocations: 1.875 kB / 447.4 MB, free: 8.062 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002188/0.4522, allocations: 1.493 MB / 448.8 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003701/0.4559, allocations: 0.512 MB / 449.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04558/0.5015, allocations: 24.87 MB / 474.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003008/0.5045, allocations: 2.201 MB / 476.4 MB, free: 8.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001679/0.5062, allocations: 0.4978 MB / 476.9 MB, free: 8.387 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00173/0.508, allocations: 1.136 MB / 478.1 MB, free: 7.25 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.508, allocations: 0 / 478.1 MB, free: 7.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0923/0.6003, allocations: 49.91 MB / 0.5156 GB, free: 5.219 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002606/0.6006, allocations: 268.7 kB / 0.5159 GB, free: 4.859 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.923/3.524, allocations: 0 / 0.5159 GB, free: 4.859 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