Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 107.2 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.236e-05/2.247e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1227, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4908/0.6136, allocations: 113.5 MB / 0.4893 GB, free: 13.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000336/0.614, allocations: 83.95 kB / 0.4894 GB, free: 13.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5136/1.128, allocations: 82.18 MB / 0.5696 GB, free: 97.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.634e-06/1.128, allocations: 0 / 0.5696 GB, free: 97.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002626/1.128, allocations: 68.69 kB / 0.5697 GB, free: 97.54 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.006155/1.134, allocations: 2.627 MB / 0.5723 GB, free: 96.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/1.134, allocations: 10.03 kB / 0.5723 GB, free: 96.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001411/1.136, allocations: 419.9 kB / 0.5727 GB, free: 96.26 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003085/1.139, allocations: 1.841 MB / 0.5745 GB, free: 95.79 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.857e-05/1.139, allocations: 93.09 kB / 0.5745 GB, free: 95.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002928/1.139, allocations: 154.8 kB / 0.5747 GB, free: 95.79 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003623/1.143, allocations: 2.301 MB / 0.5769 GB, free: 95.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004303/1.147, allocations: 2.782 MB / 0.5797 GB, free: 95.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.584e-05/1.147, allocations: 13.92 kB / 0.5797 GB, free: 95.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002019/1.147, allocations: 6.062 kB / 0.5797 GB, free: 95.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001138/1.147, allocations: 107.9 kB / 0.5798 GB, free: 95.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01522/1.163, allocations: 9.971 MB / 0.5895 GB, free: 92.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/1.164, allocations: 1.732 MB / 0.5912 GB, free: 91.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009036/1.165, allocations: 0.8303 MB / 0.592 GB, free: 90.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003463/1.166, allocations: 224.3 kB / 0.5922 GB, free: 90.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/1.166, allocations: 49.91 kB / 0.5923 GB, free: 90.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=120): time 3.296e-06/1.166, allocations: 0 / 0.5923 GB, free: 90.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=146): time 0.009792/1.175, allocations: 5.461 MB / 0.5976 GB, free: 88.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/1.176, allocations: 70.61 kB / 0.5977 GB, free: 88.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002488/1.178, allocations: 1.363 MB / 0.599 GB, free: 87.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/1.178, allocations: 25.7 kB / 0.599 GB, free: 87.74 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006772/1.179, allocations: 1.249 MB / 0.6003 GB, free: 86.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003353/1.179, allocations: 493.5 kB / 0.6007 GB, free: 86.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.842e-05/1.179, allocations: 0 / 0.6007 GB, free: 86.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001091/1.179, allocations: 376.3 kB / 0.6011 GB, free: 86.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000983/1.18, allocations: 0.7777 MB / 0.6018 GB, free: 85.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/1.182, allocations: 1.247 MB / 0.6031 GB, free: 84.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/1.183, allocations: 0.9834 MB / 0.604 GB, free: 84.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.394e-05/1.183, allocations: 7.375 kB / 0.604 GB, free: 84.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.004104/1.187, allocations: 2.672 MB / 0.6066 GB, free: 83.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/1.187, allocations: 11.41 kB / 0.6067 GB, free: 83.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.502e-05/1.187, allocations: 15.31 kB / 0.6067 GB, free: 83.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/1.189, allocations: 0.5867 MB / 0.6072 GB, free: 83.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/1.19, allocations: 418 kB / 0.6076 GB, free: 83.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005968/1.196, allocations: 5.211 MB / 0.6127 GB, free: 80.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/1.198, allocations: 106.3 kB / 0.6128 GB, free: 80.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002356/1.198, allocations: 71.78 kB / 0.6129 GB, free: 80.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000348/1.199, allocations: 153.5 kB / 0.613 GB, free: 80.25 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003657/1.202, allocations: 2.234 MB / 0.6152 GB, free: 79.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004895/1.203, allocations: 188.1 kB / 0.6154 GB, free: 79.33 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003804/1.207, allocations: 2.397 MB / 0.6177 GB, free: 78.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/1.207, allocations: 14.89 kB / 0.6178 GB, free: 78.44 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/1.207, allocations: 6.719 kB / 0.6178 GB, free: 78.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/1.207, allocations: 11.12 kB / 0.6178 GB, free: 78.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008744/1.215, allocations: 4.996 MB / 0.6227 GB, free: 76.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/1.215, allocations: 3.531 kB / 0.6227 GB, free: 76.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/1.216, allocations: 261.7 kB / 0.6229 GB, free: 76.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001702/1.218, allocations: 0.6367 MB / 0.6235 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/1.218, allocations: 19.42 kB / 0.6235 GB, free: 76.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006907/1.225, allocations: 6.869 MB / 0.6303 GB, free: 69.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/1.225, allocations: 4 kB / 0.6303 GB, free: 69.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004844/1.23, allocations: 3.819 MB / 0.634 GB, free: 66.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/1.231, allocations: 445.8 kB / 0.6344 GB, free: 65.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005768/1.232, allocations: 11.7 kB / 0.6344 GB, free: 65.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/1.233, allocations: 99.41 kB / 0.6345 GB, free: 65.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002885/1.234, allocations: 122.2 kB / 0.6346 GB, free: 65.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/1.234, allocations: 50.89 kB / 0.6347 GB, free: 65.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001748/1.235, allocations: 1.03 MB / 0.6357 GB, free: 64.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.235, allocations: 0 / 0.6357 GB, free: 64.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002437/1.238, allocations: 0.5386 MB / 0.6362 GB, free: 64.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005314/1.243, allocations: 5.583 MB / 0.6417 GB, free: 58.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003311/1.247, allocations: 2.384 MB / 0.644 GB, free: 56.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/1.247, allocations: 0 / 0.644 GB, free: 56.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002096/1.249, allocations: 1.536 MB / 0.6455 GB, free: 55.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/1.251, allocations: 315.6 kB / 0.6458 GB, free: 55.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/1.261, allocations: 4.716 MB / 0.6504 GB, free: 50.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002233/1.263, allocations: 2.075 MB / 0.6524 GB, free: 49.31 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00163/1.265, allocations: 406.5 kB / 0.6528 GB, free: 49.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/1.266, allocations: 1.005 MB / 0.6538 GB, free: 48.11 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/1.266, allocations: 0 / 0.6538 GB, free: 48.11 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07373/1.34, allocations: 43.5 MB / 0.6963 GB, free: 5.652 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002218/1.34, allocations: 169.6 kB / 0.6964 GB, free: 5.457 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.217/4.557, allocations: 0 / 0.6964 GB, free: 5.457 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat