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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001354/0.001354, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007475/0.0007474, allocations: 86.7 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.735e-05/1.748e-05, allocations: 0 / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09135, allocations: 47.59 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3841/0.4755, allocations: 109.5 MB / 472.7 MB, free: 2.336 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.4759, allocations: 85.27 kB / 472.8 MB, free: 2.293 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.139/0.615, allocations: 52.3 MB / 0.5127 GB, free: 3.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6151, allocations: 0 / 0.5127 GB, free: 3.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002145/0.6153, allocations: 71.88 kB / 0.5128 GB, free: 3.27 MB / 394.7 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.005742/0.621, allocations: 2.597 MB / 0.5154 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.6211, allocations: 12.03 kB / 0.5154 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001143/0.6223, allocations: 344.1 kB / 0.5157 GB, free: 268 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003777/0.626, allocations: 1.9 MB / 0.5175 GB, free: 14.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.502e-05/0.6262, allocations: 87.98 kB / 0.5176 GB, free: 14.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003491/0.6265, allocations: 160.2 kB / 0.5178 GB, free: 14.06 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004164/0.6307, allocations: 2.353 MB / 0.5201 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004878/0.6356, allocations: 2.832 MB / 0.5228 GB, free: 8.727 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.052e-05/0.6357, allocations: 11.84 kB / 0.5229 GB, free: 8.715 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001996/0.6359, allocations: 4 kB / 0.5229 GB, free: 8.711 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000134/0.636, allocations: 124.9 kB / 0.523 GB, free: 8.586 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2522/0.8883, allocations: 9.966 MB / 0.5327 GB, free: 98.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002661/0.891, allocations: 1.404 MB / 0.5341 GB, free: 98.26 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001306/0.8923, allocations: 0.7278 MB / 0.5348 GB, free: 98.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003927/0.8927, allocations: 223.7 kB / 0.535 GB, free: 98.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.8928, allocations: 45.41 kB / 0.5351 GB, free: 98.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=107): time 3.947e-06/0.8928, allocations: 0 / 0.5351 GB, free: 98.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=137): time 0.01129/0.9041, allocations: 5.164 MB / 0.5401 GB, free: 97.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.9042, allocations: 65.25 kB / 0.5402 GB, free: 97.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/0.9067, allocations: 1.303 MB / 0.5414 GB, free: 97.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.9068, allocations: 29.33 kB / 0.5415 GB, free: 97.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008705/0.9077, allocations: 1.268 MB / 0.5427 GB, free: 96.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004135/0.9081, allocations: 455.6 kB / 0.5431 GB, free: 96.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.058e-05/0.9082, allocations: 1.031 kB / 0.5431 GB, free: 96.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.9084, allocations: 372.3 kB / 0.5435 GB, free: 96.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.9098, allocations: 0.7639 MB / 0.5442 GB, free: 96.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.9112, allocations: 1.264 MB / 0.5455 GB, free: 95.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.9127, allocations: 0.9834 MB / 0.5464 GB, free: 95.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/0.9127, allocations: 4.469 kB / 0.5464 GB, free: 95.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004111/0.9168, allocations: 2.348 MB / 0.5487 GB, free: 95.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/0.9169, allocations: 13.09 kB / 0.5487 GB, free: 95.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.145e-05/0.9169, allocations: 16.31 kB / 0.5488 GB, free: 95.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006363/0.9176, allocations: 238.4 kB / 0.549 GB, free: 95.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/0.9191, allocations: 459.7 kB / 0.5494 GB, free: 95.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00193/0.921, allocations: 2.885 MB / 0.5522 GB, free: 92.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.9227, allocations: 103.2 kB / 0.5523 GB, free: 92.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.9228, allocations: 73.75 kB / 0.5524 GB, free: 92.86 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * 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.000283/0.9231, allocations: 164.2 kB / 0.5526 GB, free: 92.74 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002662/0.9258, allocations: 1.855 MB / 0.5544 GB, free: 92.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002899/0.9261, allocations: 174.2 kB / 0.5545 GB, free: 92.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002864/0.9289, allocations: 2.025 MB / 0.5565 GB, free: 92.33 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.929, allocations: 14.5 kB / 0.5565 GB, free: 92.33 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.929, allocations: 3.953 kB / 0.5565 GB, free: 92.33 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.929, allocations: 11.66 kB / 0.5565 GB, free: 92.33 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006589/0.9356, allocations: 4.488 MB / 0.5609 GB, free: 91.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.9356, allocations: 3.938 kB / 0.5609 GB, free: 91.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.9368, allocations: 301.9 kB / 0.5612 GB, free: 91.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004766/0.9373, allocations: 208.3 kB / 0.5614 GB, free: 91.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.16e-05/0.9374, allocations: 3.656 kB / 0.5614 GB, free: 91.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001712/0.9391, allocations: 2.876 MB / 0.5642 GB, free: 89.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.9391, allocations: 0.5469 kB / 0.5642 GB, free: 89.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003817/0.9429, allocations: 3.336 MB / 0.5675 GB, free: 88.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000911/0.9439, allocations: 425.7 kB / 0.5679 GB, free: 87.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00022/0.9441, allocations: 3.812 kB / 0.5679 GB, free: 87.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008937/0.945, allocations: 86.67 kB / 0.568 GB, free: 87.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.9451, allocations: 89.62 kB / 0.5681 GB, free: 87.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.923e-05/0.9452, allocations: 36.7 kB / 0.5681 GB, free: 87.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00125/0.9465, allocations: 0.9712 MB / 0.5691 GB, free: 87.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.222e-06/0.9465, allocations: 0 / 0.5691 GB, free: 87.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001635/0.9481, allocations: 465.1 kB / 0.5695 GB, free: 87.54 MB / 410.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 129 * 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.004288/0.9524, allocations: 4.754 MB / 0.5741 GB, free: 84.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003091/0.9555, allocations: 2.311 MB / 0.5764 GB, free: 83.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/0.9556, allocations: 1.781 kB / 0.5764 GB, free: 83.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/0.957, allocations: 1.353 MB / 0.5777 GB, free: 83.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002145/0.9592, allocations: 379.9 kB / 0.5781 GB, free: 83.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.9694, allocations: 4.509 MB / 0.5825 GB, free: 81.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001555/0.971, allocations: 2.071 MB / 0.5845 GB, free: 80.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001638/0.9727, allocations: 0.5152 MB / 0.585 GB, free: 80.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/0.9738, allocations: 1.013 MB / 0.586 GB, free: 79.49 MB / 410.7 MB Notification: Performance of SimCode: time 1.282e-06/0.9738, allocations: 0 / 0.586 GB, free: 79.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06976/1.044, allocations: 40.53 MB / 0.6256 GB, free: 54.88 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001669/1.044, allocations: 180.5 kB / 0.6257 GB, free: 54.69 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.979/4.023, allocations: 0 / 0.6257 GB, free: 54.69 MB / 410.7 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) 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