Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",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.0008184/0.0008184, allocations: 94.56 kB / 17.3 MB, free: 6.078 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.0008384/0.0008384, allocations: 180.2 kB / 18.21 MB, free: 5.395 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.595/1.595, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004888/0.0004888, allocations: 12 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1151, allocations: 47.58 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01168/0.1268, allocations: 10.22 MB / 339.3 MB, free: 9.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006966/0.1338, allocations: 3.615 MB / 342.9 MB, free: 5.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001564/0.1354, allocations: 51.75 kB / 343 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001966/0.1374, allocations: 0.7069 MB / 343.7 MB, free: 4.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002926/0.1403, allocations: 0.781 MB / 344.4 MB, free: 4.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.1414, allocations: 407.6 kB / 344.8 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003902/0.1453, allocations: 3.266 MB / 348.1 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002676/0.148, allocations: 2.228 MB / 350.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002097/0.1501, allocations: 1.031 MB / 351.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002608/0.1528, allocations: 1.463 MB / 352.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003661/0.1532, allocations: 156 kB / 353 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008257/0.154, allocations: 267.8 kB / 353.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007843/0.1548, allocations: 0.8136 MB / 354.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00176/0.1566, allocations: 1.404 MB / 355.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00411/0.1607, allocations: 4.55 MB / 360 MB, free: 4.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.1607, allocations: 3.984 kB / 360 MB, free: 4.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.1607, allocations: 3.938 kB / 360 MB, free: 4.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001092/0.1608, allocations: 4 kB / 360 MB, free: 4.508 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.005736/0.1666, allocations: 2.841 MB / 362.9 MB, free: 1.602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.1666, allocations: 12.03 kB / 362.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005861/0.1672, allocations: 367 kB / 363.2 MB, free: 1.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007584/0.168, allocations: 337.1 kB / 363.6 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002609/0.1706, allocations: 1.69 MB / 365.2 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.1708, allocations: 205.1 kB / 365.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000359/0.1712, allocations: 247.9 kB / 365.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005294/0.1765, allocations: 3.287 MB / 369 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.699e-05/0.1766, allocations: 7.906 kB / 369 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002281/0.1768, allocations: 104 kB / 369.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001207/0.1769, allocations: 120.9 kB / 369.2 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004508/0.1815, allocations: 2.748 MB / 372 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2362/0.4177, allocations: 10.55 MB / 382.5 MB, free: 33.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002064/0.4198, allocations: 1.367 MB / 383.9 MB, free: 32.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/0.421, allocations: 0.7807 MB / 384.7 MB, free: 32.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002492/0.4213, allocations: 201.5 kB / 384.8 MB, free: 32.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.4213, allocations: 44.64 kB / 384.9 MB, free: 32.74 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 2.875e-06/0.4214, allocations: 0 / 384.9 MB, free: 32.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01659/0.4379, allocations: 7.088 MB / 392 MB, free: 31.65 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.438, allocations: 67.78 kB / 392 MB, free: 31.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002863/0.4409, allocations: 1.787 MB / 393.8 MB, free: 31.4 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.441, allocations: 48.97 kB / 393.9 MB, free: 31.37 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008956/0.4419, allocations: 1.283 MB / 395.2 MB, free: 30.78 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003404/0.4423, allocations: 421.2 kB / 395.6 MB, free: 30.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.4425, allocations: 128 kB / 395.7 MB, free: 30.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.807e-05/0.4425, allocations: 306.9 kB / 396 MB, free: 30.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.4438, allocations: 0.7757 MB / 396.8 MB, free: 30.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.4452, allocations: 1.298 MB / 398.1 MB, free: 29.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002497/0.4477, allocations: 2.217 MB / 400.3 MB, free: 27.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.4477, allocations: 6.531 kB / 400.3 MB, free: 27.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003943/0.4516, allocations: 2.48 MB / 402.8 MB, free: 26.92 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.4517, allocations: 13.44 kB / 402.8 MB, free: 26.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/0.4517, allocations: 18.5 kB / 402.8 MB, free: 26.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006168/0.4523, allocations: 237.5 kB / 403 MB, free: 26.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.4537, allocations: 420.7 kB / 403.5 MB, free: 26.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001998/0.4557, allocations: 3.002 MB / 406.5 MB, free: 24.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.4573, allocations: 137.4 kB / 406.6 MB, free: 24.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.4574, allocations: 71.19 kB / 406.7 MB, free: 24.04 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001586/0.459, allocations: 0.8228 MB / 407.5 MB, free: 23.61 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/0.4594, allocations: 185.3 kB / 407.7 MB, free: 23.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00293/0.4624, allocations: 2.044 MB / 409.7 MB, free: 22.62 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.4624, allocations: 14.5 kB / 409.7 MB, free: 22.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4624, allocations: 3.938 kB / 409.7 MB, free: 22.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.4624, allocations: 3.984 kB / 409.7 MB, free: 22.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00661/0.469, allocations: 4.746 MB / 414.5 MB, free: 17.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.4691, allocations: 7.875 kB / 414.5 MB, free: 17.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009905/0.4701, allocations: 261.4 kB / 414.7 MB, free: 17.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004653/0.4706, allocations: 207.4 kB / 414.9 MB, free: 17.51 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.605e-05/0.4706, allocations: 24 kB / 415 MB, free: 17.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001735/0.4724, allocations: 2.98 MB / 417.9 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4724, allocations: 6.141 kB / 417.9 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003717/0.4761, allocations: 3.131 MB / 421.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/0.4772, allocations: 437.7 kB / 421.5 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002289/0.4774, allocations: 32.05 kB / 421.5 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009132/0.4783, allocations: 91.88 kB / 421.6 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.4785, allocations: 84.83 kB / 421.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.425e-05/0.4786, allocations: 32 kB / 421.7 MB, free: 10.4 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001553/0.4801, allocations: 1.224 MB / 423 MB, free: 9.184 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4801, allocations: 0 / 423 MB, free: 9.184 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001652/0.4818, allocations: 488 kB / 423.4 MB, free: 8.707 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,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.003995/0.4858, allocations: 3.763 MB / 427.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002991/0.4888, allocations: 2.348 MB / 429.6 MB, free: 2.547 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.4888, allocations: 0 / 429.6 MB, free: 2.547 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00148/0.4903, allocations: 1.344 MB / 430.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002857/0.4932, allocations: 467.6 kB / 431.4 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03534/0.5286, allocations: 21.79 MB / 453.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001921/0.5305, allocations: 2.008 MB / 455.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001779/0.5323, allocations: 0.4981 MB / 455.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001424/0.5338, allocations: 1.007 MB / 456.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of SimCode: time 1.993e-06/0.5338, allocations: 0 / 456.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08119/0.615, allocations: 43.32 MB / 500 MB, free: 10.5 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002423/0.6153, allocations: 268.1 kB / 0.4885 GB, free: 10.14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.764/3.38, allocations: 3.906 kB / 0.4885 GB, free: 10.14 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches