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.001344/0.001344, allocations: 96.72 kB / 16.95 MB, free: 6.887 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.001182/0.001183, allocations: 185.8 kB / 17.84 MB, free: 6.133 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.729/1.729, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005444/0.0005445, allocations: 8.625 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1418, allocations: 47.57 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01097/0.1528, allocations: 9.611 MB / 338.1 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008001/0.1609, allocations: 3.465 MB / 341.5 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0019/0.1628, allocations: 55.69 kB / 341.6 MB, free: 6.793 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001974/0.1648, allocations: 0.6523 MB / 342.2 MB, free: 6.137 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002836/0.1677, allocations: 0.7303 MB / 343 MB, free: 5.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.1688, allocations: 291.6 kB / 343.2 MB, free: 5.117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004327/0.1731, allocations: 2.966 MB / 346.2 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002772/0.1759, allocations: 1.816 MB / 348 MB, free: 296 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002199/0.1781, allocations: 1.012 MB / 349 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002147/0.1803, allocations: 1.416 MB / 350.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003257/0.1806, allocations: 156 kB / 350.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006971/0.1813, allocations: 227.9 kB / 350.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009442/0.1823, allocations: 0.8061 MB / 351.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007465/0.1831, allocations: 0.5704 MB / 352.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004192/0.1873, allocations: 3.907 MB / 356.1 MB, free: 8.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.1873, allocations: 4 kB / 356.1 MB, free: 8.168 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1873, allocations: 0 / 356.1 MB, free: 8.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001032/0.1874, allocations: 0 / 356.1 MB, free: 8.168 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.006491/0.1939, allocations: 2.88 MB / 359 MB, free: 5.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.075e-05/0.194, allocations: 12.03 kB / 359 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000604/0.1946, allocations: 362.8 kB / 359.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008639/0.1955, allocations: 340.1 kB / 359.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002926/0.1984, allocations: 1.643 MB / 361.3 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.1986, allocations: 197 kB / 361.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003517/0.1989, allocations: 244 kB / 361.8 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00581/0.2048, allocations: 3.271 MB / 365 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.548e-05/0.2049, allocations: 11.84 kB / 365.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002184/0.2051, allocations: 100 kB / 365.2 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001384/0.2053, allocations: 124.9 kB / 365.3 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004921/0.2102, allocations: 2.736 MB / 368 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01765/0.2279, allocations: 10.54 MB / 378.5 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2734/0.5014, allocations: 1.349 MB / 379.9 MB, free: 48.96 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001849/0.5033, allocations: 0.7795 MB / 380.7 MB, free: 48.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002999/0.5036, allocations: 206.3 kB / 380.9 MB, free: 48.76 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.5036, allocations: 47.42 kB / 380.9 MB, free: 48.72 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.617e-06/0.5036, allocations: 1.312 kB / 380.9 MB, free: 48.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01883/0.5225, allocations: 7.067 MB / 388 MB, free: 47.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.5226, allocations: 65 kB / 388.1 MB, free: 47.15 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003351/0.5259, allocations: 1.783 MB / 389.8 MB, free: 46.49 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.5261, allocations: 45.61 kB / 389.9 MB, free: 46.44 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.5271, allocations: 1.278 MB / 391.2 MB, free: 45.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003874/0.5275, allocations: 423.2 kB / 391.6 MB, free: 45.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.991e-05/0.5276, allocations: 31.84 kB / 391.6 MB, free: 45.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.5278, allocations: 368.9 kB / 392 MB, free: 44.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.529, allocations: 0.7668 MB / 392.7 MB, free: 44.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.5306, allocations: 1.295 MB / 394 MB, free: 43.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001587/0.5322, allocations: 0.981 MB / 395 MB, free: 43.17 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.366e-05/0.5322, allocations: 5.5 kB / 395 MB, free: 43.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004024/0.5362, allocations: 2.466 MB / 397.5 MB, free: 42.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.5363, allocations: 11.88 kB / 397.5 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.591e-05/0.5363, allocations: 19.75 kB / 397.5 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000587/0.5369, allocations: 242.7 kB / 397.7 MB, free: 42.1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.5382, allocations: 422.8 kB / 398.2 MB, free: 42.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.5402, allocations: 2.993 MB / 401.2 MB, free: 39.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.5417, allocations: 129.8 kB / 401.3 MB, free: 39.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.5418, allocations: 76 kB / 401.4 MB, free: 39.26 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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00158/0.5434, allocations: 0.8147 MB / 402.2 MB, free: 38.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003247/0.5437, allocations: 193.8 kB / 402.4 MB, free: 38.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002857/0.5466, allocations: 2.027 MB / 404.4 MB, free: 37.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.5466, allocations: 11.69 kB / 404.4 MB, free: 37.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.5466, allocations: 3.875 kB / 404.4 MB, free: 37.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.5467, allocations: 7.984 kB / 404.4 MB, free: 37.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006168/0.5528, allocations: 4.748 MB / 409.2 MB, free: 32.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.5529, allocations: 4 kB / 409.2 MB, free: 32.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009314/0.5538, allocations: 275.8 kB / 409.4 MB, free: 32.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004255/0.5542, allocations: 203.2 kB / 409.6 MB, free: 32.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.534e-05/0.5543, allocations: 24 kB / 409.7 MB, free: 32.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001764/0.5561, allocations: 2.983 MB / 412.6 MB, free: 28.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.5561, allocations: 4 kB / 412.6 MB, free: 28.95 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00388/0.56, allocations: 3.114 MB / 415.8 MB, free: 25.78 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007823/0.5608, allocations: 438.6 kB / 416.2 MB, free: 25.33 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001969/0.561, allocations: 27.98 kB / 416.2 MB, free: 25.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000786/0.5618, allocations: 95.94 kB / 416.3 MB, free: 25.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.5619, allocations: 80.83 kB / 416.4 MB, free: 25.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.416e-05/0.562, allocations: 32 kB / 416.4 MB, free: 25.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001601/0.5636, allocations: 1.22 MB / 417.6 MB, free: 23.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5636, allocations: 0 / 417.6 MB, free: 23.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001715/0.5653, allocations: 481 kB / 418.1 MB, free: 23.41 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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00382/0.5692, allocations: 3.729 MB / 421.8 MB, free: 19.63 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003055/0.5722, allocations: 2.334 MB / 424.2 MB, free: 17.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5722, allocations: 1.938 kB / 424.2 MB, free: 17.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001468/0.5737, allocations: 1.331 MB / 425.5 MB, free: 15.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002226/0.576, allocations: 471.3 kB / 426 MB, free: 15.38 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02904/0.605, allocations: 15.33 MB / 441.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002728/0.6078, allocations: 2.006 MB / 443.3 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002106/0.6099, allocations: 0.4921 MB / 443.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001651/0.6116, allocations: 1.007 MB / 444.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of SimCode: time 1.403e-06/0.6116, allocations: 0 / 444.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08899/0.7006, allocations: 43.1 MB / 487.9 MB, free: 328 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002465/0.7009, allocations: 245.9 kB / 488.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.425/4.126, allocations: 0 / 488.1 MB, free: 15.99 MB / 382.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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat