Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.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.AsynchronousInductionMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz",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.001464/0.001464, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.992/1.992, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 93.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.147e-05/2.157e-05, allocations: 0 / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3408, allocations: 47.57 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1741/0.515, allocations: 103.2 MB / 465.7 MB, free: 14.92 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000377/0.5154, allocations: 88.52 kB / 465.8 MB, free: 14.83 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1797/0.6951, allocations: 40.85 MB / 0.4947 GB, free: 5.824 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.6952, allocations: 0 / 0.4947 GB, free: 5.824 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002347/0.6954, allocations: 47.94 kB / 0.4948 GB, free: 5.777 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.007407/0.7029, allocations: 1.992 MB / 0.4967 GB, free: 3.734 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.7029, allocations: 8.031 kB / 0.4967 GB, free: 3.727 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.7046, allocations: 273.1 kB / 0.497 GB, free: 3.457 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004844/0.7095, allocations: 1.368 MB / 0.4983 GB, free: 2.031 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.7097, allocations: 60 kB / 0.4984 GB, free: 1.973 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007776/0.7105, allocations: 115.9 kB / 0.4985 GB, free: 1.859 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006052/0.7165, allocations: 1.741 MB / 0.5002 GB, free: 120 kB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2846/1.001, allocations: 2.098 MB / 0.5023 GB, free: 98.78 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/1.001, allocations: 6.891 kB / 0.5023 GB, free: 98.78 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002361/1.002, allocations: 2.125 kB / 0.5023 GB, free: 98.78 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001478/1.002, allocations: 86.22 kB / 0.5023 GB, free: 98.78 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02069/1.022, allocations: 7.457 MB / 0.5096 GB, free: 96.96 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003481/1.026, allocations: 1.325 MB / 0.5109 GB, free: 96.74 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002445/1.029, allocations: 0.8583 MB / 0.5118 GB, free: 96.72 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004199/1.029, allocations: 135.5 kB / 0.5119 GB, free: 96.62 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/1.029, allocations: 44.38 kB / 0.5119 GB, free: 96.59 MB / 395.1 MB Notification: Performance of pre-optimization done (n=111): time 4.488e-06/1.029, allocations: 4.031 kB / 0.5119 GB, free: 96.59 MB / 395.1 MB Notification: Performance of matching and sorting (n=127): time 0.01405/1.043, allocations: 4.22 MB / 0.5161 GB, free: 95.9 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.398e-05/1.043, allocations: 64.97 kB / 0.5161 GB, free: 95.83 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/1.045, allocations: 0.892 MB / 0.517 GB, free: 95.69 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002613/1.046, allocations: 26.89 kB / 0.517 GB, free: 95.66 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006135/1.046, allocations: 0.8748 MB / 0.5179 GB, free: 95.26 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004538/1.047, allocations: 419.1 kB / 0.5183 GB, free: 94.98 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/1.047, allocations: 0 / 0.5183 GB, free: 94.98 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/1.047, allocations: 370.4 kB / 0.5186 GB, free: 94.67 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001472/1.048, allocations: 0.6226 MB / 0.5192 GB, free: 94.57 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/1.05, allocations: 0.9337 MB / 0.5201 GB, free: 93.96 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001603/1.052, allocations: 0.7717 MB / 0.5209 GB, free: 93.67 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/1.052, allocations: 2.812 kB / 0.5209 GB, free: 93.67 MB / 395.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.004804/1.056, allocations: 2.053 MB / 0.5229 GB, free: 92.95 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/1.056, allocations: 11.53 kB / 0.5229 GB, free: 92.95 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/1.056, allocations: 12.86 kB / 0.5229 GB, free: 92.95 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001703/1.058, allocations: 497.5 kB / 0.5234 GB, free: 92.79 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002277/1.06, allocations: 333.7 kB / 0.5237 GB, free: 92.79 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008071/1.069, allocations: 6.326 MB / 0.5299 GB, free: 87.95 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/1.071, allocations: 58.61 kB / 0.53 GB, free: 87.95 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000156/1.071, allocations: 57.28 kB / 0.53 GB, free: 87.93 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 148 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000354/1.071, allocations: 144.5 kB / 0.5302 GB, free: 87.81 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004585/1.076, allocations: 1.847 MB / 0.532 GB, free: 87.12 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005563/1.076, allocations: 141.8 kB / 0.5321 GB, free: 87.04 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004921/1.081, allocations: 1.962 MB / 0.534 GB, free: 86.29 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/1.081, allocations: 13.25 kB / 0.534 GB, free: 86.29 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/1.081, allocations: 3.812 kB / 0.534 GB, free: 86.29 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.803e-05/1.081, allocations: 14.48 kB / 0.534 GB, free: 86.29 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/1.092, allocations: 3.952 MB / 0.5379 GB, free: 84.66 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/1.092, allocations: 7.25 kB / 0.5379 GB, free: 84.66 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001856/1.094, allocations: 222.5 kB / 0.5381 GB, free: 84.64 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002287/1.096, allocations: 0.5368 MB / 0.5386 GB, free: 84.47 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/1.096, allocations: 11.92 kB / 0.5386 GB, free: 84.47 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009757/1.106, allocations: 7.843 MB / 0.5463 GB, free: 78.28 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/1.106, allocations: 7.719 kB / 0.5463 GB, free: 78.28 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00669/1.113, allocations: 3.034 MB / 0.5493 GB, free: 76.83 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/1.114, allocations: 358.1 kB / 0.5496 GB, free: 76.59 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002855/1.114, allocations: 14.58 kB / 0.5496 GB, free: 76.59 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/1.116, allocations: 49.72 kB / 0.5497 GB, free: 76.59 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/1.116, allocations: 111 kB / 0.5498 GB, free: 76.57 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/1.116, allocations: 37.38 kB / 0.5498 GB, free: 76.56 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001262/1.118, allocations: 0.6711 MB / 0.5505 GB, free: 76.25 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.31e-07/1.118, allocations: 0 / 0.5505 GB, free: 76.25 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002272/1.12, allocations: 407.5 kB / 0.5509 GB, free: 76.25 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007212/1.127, allocations: 4.38 MB / 0.5551 GB, free: 73.63 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004654/1.132, allocations: 2.199 MB / 0.5573 GB, free: 72.47 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/1.132, allocations: 2.938 kB / 0.5573 GB, free: 72.47 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003189/1.135, allocations: 1.517 MB / 0.5588 GB, free: 71.57 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002733/1.138, allocations: 301.8 kB / 0.5591 GB, free: 71.49 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009759/1.148, allocations: 3.853 MB / 0.5628 GB, free: 69.46 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001431/1.149, allocations: 1.683 MB / 0.5645 GB, free: 68.08 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001486/1.151, allocations: 0.7187 MB / 0.5652 GB, free: 67.42 MB / 395.1 MB Notification: Performance of SimCode: time 1.252e-06/1.151, allocations: 0 / 0.5652 GB, free: 67.42 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.028/5.179, allocations: 76.86 MB / 0.6402 GB, free: 11.31 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat