Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.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.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump",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.001577/0.001577, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.951/1.951, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 98.08 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005733/0.0005733, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3271, allocations: 47.56 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1855/0.5126, allocations: 115.7 MB / 490.3 MB, free: 12.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/0.5129, allocations: 95.89 kB / 490.4 MB, free: 12.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5064/1.019, allocations: 62.4 MB / 0.5399 GB, free: 77.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.166e-06/1.019, allocations: 0 / 0.5399 GB, free: 77.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003139/1.02, allocations: 79.94 kB / 0.5399 GB, free: 77.03 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 731 * Number of variables: 731 Notification: Performance of Generate backend data structure: time 0.01267/1.032, allocations: 3.436 MB / 0.5433 GB, free: 73.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/1.033, allocations: 8.031 kB / 0.5433 GB, free: 73.51 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001846/1.034, allocations: 458.3 kB / 0.5437 GB, free: 73.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002469/1.037, allocations: 487.4 kB / 0.5442 GB, free: 72.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006738/1.044, allocations: 2.088 MB / 0.5463 GB, free: 70.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002974/1.044, allocations: 379.9 kB / 0.5466 GB, free: 70.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000793/1.045, allocations: 283.9 kB / 0.5469 GB, free: 69.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009275/1.054, allocations: 3.676 MB / 0.5505 GB, free: 65.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001256/1.054, allocations: 11.97 kB / 0.5505 GB, free: 65.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004318/1.055, allocations: 124 kB / 0.5506 GB, free: 65.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/1.055, allocations: 109.5 kB / 0.5507 GB, free: 65.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008596/1.063, allocations: 2.942 MB / 0.5536 GB, free: 62.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03089/1.094, allocations: 11.98 MB / 0.5653 GB, free: 50.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005084/1.1, allocations: 2.86 MB / 0.5681 GB, free: 47.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004962/1.1, allocations: 134.4 kB / 0.5682 GB, free: 47.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003042/1.103, allocations: 1.183 MB / 0.5694 GB, free: 45.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=156): time 4.699e-06/1.103, allocations: 0 / 0.5694 GB, free: 45.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=179): time 0.03614/1.139, allocations: 9.439 MB / 0.5786 GB, free: 36.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/1.14, allocations: 312.7 kB / 0.5789 GB, free: 36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004305/1.144, allocations: 1.863 MB / 0.5807 GB, free: 34.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004921/1.144, allocations: 65.69 kB / 0.5808 GB, free: 34.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001292/1.146, allocations: 1.296 MB / 0.582 GB, free: 32.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008874/1.147, allocations: 0.6047 MB / 0.5826 GB, free: 32.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000246/1.147, allocations: 43.94 kB / 0.5827 GB, free: 32.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001822/1.147, allocations: 394.8 kB / 0.583 GB, free: 31.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00274/1.15, allocations: 1.05 MB / 0.5841 GB, free: 30.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003271/1.153, allocations: 1.585 MB / 0.5856 GB, free: 28.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003229/1.156, allocations: 1.263 MB / 0.5868 GB, free: 27.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.636e-05/1.156, allocations: 4 kB / 0.5868 GB, free: 27.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=263) (initialization): time 0.0097/1.166, allocations: 3.528 MB / 0.5903 GB, free: 23.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00107/1.167, allocations: 5.148 MB / 0.5953 GB, free: 18.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-05/1.167, allocations: 16 kB / 0.5953 GB, free: 18.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004971/1.172, allocations: 1.202 MB / 0.5965 GB, free: 17.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/1.175, allocations: 375.4 kB / 0.5969 GB, free: 16.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0224/1.198, allocations: 14.88 MB / 0.6114 GB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003775/1.202, allocations: 175.8 kB / 0.6116 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005478/1.202, allocations: 76 kB / 0.6116 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/1.202, allocations: 4 kB / 0.6116 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01072/1.213, allocations: 3.422 MB / 0.615 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.803e-05/1.213, allocations: 15.94 kB / 0.615 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004659/1.218, allocations: 1.177 MB / 0.6161 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002936/1.221, allocations: 375.4 kB / 0.6165 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02769/1.248, allocations: 14.94 MB / 0.6311 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002446/1.251, allocations: 167.9 kB / 0.6313 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000381/1.251, allocations: 79.98 kB / 0.6313 GB, free: 11.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 204 * 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: 6 * 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: 3 {(4,100.0%) 14,(3,100.0%) 24,(2,100.0%) 4} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002977/1.254, allocations: 0.9812 MB / 0.6323 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000935/1.255, allocations: 237.2 kB / 0.6325 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.012/1.267, allocations: 3.514 MB / 0.6359 GB, free: 7.105 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.982e-05/1.267, allocations: 23.94 kB / 0.636 GB, free: 7.082 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/1.267, allocations: 0 / 0.636 GB, free: 7.082 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-05/1.267, allocations: 7.969 kB / 0.636 GB, free: 7.074 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02184/1.289, allocations: 6.742 MB / 0.6426 GB, free: 232 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.66e-05/1.289, allocations: 0 / 0.6426 GB, free: 232 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/1.291, allocations: 195.8 kB / 0.6427 GB, free: 36 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2894/1.581, allocations: 1.433 MB / 0.6441 GB, free: 98.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003337/1.581, allocations: 46.23 kB / 0.6442 GB, free: 98.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0266/1.608, allocations: 15.26 MB / 0.6591 GB, free: 92.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/1.608, allocations: 2.344 kB / 0.6591 GB, free: 92.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01282/1.62, allocations: 4.966 MB / 0.6639 GB, free: 91.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001966/1.622, allocations: 0.5316 MB / 0.6645 GB, free: 91.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009207/1.623, allocations: 51.67 kB / 0.6645 GB, free: 91.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003186/1.627, allocations: 140.5 kB / 0.6646 GB, free: 91.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001019/1.628, allocations: 222.9 kB / 0.6649 GB, free: 91.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001949/1.628, allocations: 55.91 kB / 0.6649 GB, free: 91.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00362/1.631, allocations: 1.431 MB / 0.6663 GB, free: 91.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.51e-07/1.632, allocations: 0 / 0.6663 GB, free: 91.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006946/1.638, allocations: 1.251 MB / 0.6675 GB, free: 91.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 4 {7 52,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01453/1.653, allocations: 6.204 MB / 0.6736 GB, free: 89.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01587/1.669, allocations: 6.434 MB / 0.6799 GB, free: 86.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/1.669, allocations: 3.969 kB / 0.6799 GB, free: 86.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006227/1.675, allocations: 2.355 MB / 0.6822 GB, free: 85.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004151/1.679, allocations: 0.5248 MB / 0.6827 GB, free: 85.37 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05114/1.731, allocations: 28.72 MB / 0.7107 GB, free: 63.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00251/1.733, allocations: 2.301 MB / 0.713 GB, free: 61.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002388/1.736, allocations: 1.158 MB / 0.7141 GB, free: 60.61 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/1.736, allocations: 0 / 0.7141 GB, free: 60.61 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.472/6.208, allocations: 133.9 MB / 0.8449 GB, free: 123.4 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat