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_Transformer.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_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer",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.001437/0.001437, 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.99/1.99, 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.001062/0.001061, allocations: 90.67 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.474e-05/2.487e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3392, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1826/0.5219, allocations: 111 MB / 473.4 MB, free: 7.152 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000357/0.5223, allocations: 87.95 kB / 473.5 MB, free: 7.066 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6467/1.169, allocations: 92.24 MB / 0.5525 GB, free: 89.21 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.214e-06/1.169, allocations: 0 / 0.5525 GB, free: 89.21 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004287/1.17, allocations: 104.8 kB / 0.5526 GB, free: 89.19 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01299/1.183, allocations: 3.538 MB / 0.556 GB, free: 86 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/1.183, allocations: 12.03 kB / 0.5561 GB, free: 85.98 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002993/1.186, allocations: 0.5024 MB / 0.5565 GB, free: 85.48 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008613/1.194, allocations: 2.543 MB / 0.559 GB, free: 82.92 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002585/1.195, allocations: 120 kB / 0.5591 GB, free: 82.8 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001548/1.196, allocations: 207.9 kB / 0.5593 GB, free: 82.6 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01119/1.207, allocations: 3.701 MB / 0.563 GB, free: 78.9 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01425/1.222, allocations: 4.326 MB / 0.5672 GB, free: 74.42 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001652/1.222, allocations: 15.84 kB / 0.5672 GB, free: 74.41 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008456/1.223, allocations: 7.938 kB / 0.5672 GB, free: 74.4 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002243/1.223, allocations: 175.1 kB / 0.5674 GB, free: 74.23 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03926/1.262, allocations: 14.24 MB / 0.5813 GB, free: 59.8 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006301/1.269, allocations: 4.067 MB / 0.5853 GB, free: 55.45 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004194/1.273, allocations: 1.752 MB / 0.587 GB, free: 53.7 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005425/1.273, allocations: 150.9 kB / 0.5871 GB, free: 53.54 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.487e-05/1.274, allocations: 56.56 kB / 0.5872 GB, free: 53.47 MB / 395.1 MB Notification: Performance of pre-optimization done (n=201): time 5.731e-06/1.274, allocations: 0 / 0.5872 GB, free: 53.47 MB / 395.1 MB Notification: Performance of matching and sorting (n=221): time 0.02316/1.297, allocations: 7.201 MB / 0.5942 GB, free: 46.23 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/1.297, allocations: 81.41 kB / 0.5943 GB, free: 46.14 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004178/1.301, allocations: 1.746 MB / 0.596 GB, free: 44.37 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005606/1.302, allocations: 25.7 kB / 0.596 GB, free: 44.34 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/1.303, allocations: 1.514 MB / 0.5975 GB, free: 42.81 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001033/1.304, allocations: 0.712 MB / 0.5982 GB, free: 42.09 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/1.304, allocations: 0 / 0.5982 GB, free: 42.09 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/1.304, allocations: 403.4 kB / 0.5986 GB, free: 41.68 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002654/1.307, allocations: 1.188 MB / 0.5997 GB, free: 40.49 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003213/1.31, allocations: 1.604 MB / 0.6013 GB, free: 38.72 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003386/1.314, allocations: 1.442 MB / 0.6027 GB, free: 37.29 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.473e-05/1.314, allocations: 4 kB / 0.6027 GB, free: 37.28 MB / 395.1 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.009439/1.323, allocations: 3.515 MB / 0.6061 GB, free: 33.74 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/1.323, allocations: 8.25 kB / 0.6061 GB, free: 33.73 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.089e-05/1.323, allocations: 16 kB / 0.6061 GB, free: 33.72 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003108/1.326, allocations: 0.7547 MB / 0.6069 GB, free: 32.95 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004255/1.331, allocations: 0.5266 MB / 0.6074 GB, free: 32.42 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01278/1.344, allocations: 8.341 MB / 0.6155 GB, free: 23.74 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003173/1.347, allocations: 79.8 kB / 0.6156 GB, free: 23.66 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006067/1.347, allocations: 84 kB / 0.6157 GB, free: 23.58 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * 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,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005748/1.348, allocations: 161.7 kB / 0.6159 GB, free: 23.42 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00815/1.356, allocations: 3.204 MB / 0.619 GB, free: 20.19 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/1.357, allocations: 253 kB / 0.6192 GB, free: 19.94 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0116/1.369, allocations: 3.423 MB / 0.6226 GB, free: 16.49 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.133e-05/1.369, allocations: 24 kB / 0.6226 GB, free: 16.46 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.51e-05/1.369, allocations: 8 kB / 0.6226 GB, free: 16.46 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.515e-05/1.369, allocations: 7.969 kB / 0.6226 GB, free: 16.45 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03182/1.401, allocations: 7.279 MB / 0.6297 GB, free: 9.113 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-05/1.401, allocations: 4 kB / 0.6297 GB, free: 9.109 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005184/1.406, allocations: 403.7 kB / 0.6301 GB, free: 8.715 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005596/1.412, allocations: 0.8031 MB / 0.6309 GB, free: 7.898 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000652/1.413, allocations: 19.98 kB / 0.6309 GB, free: 7.879 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02354/1.436, allocations: 9.814 MB / 0.6405 GB, free: 13.61 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.178e-05/1.437, allocations: 0 / 0.6405 GB, free: 13.61 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01716/1.454, allocations: 5.39 MB / 0.6458 GB, free: 8.062 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002715/1.456, allocations: 0.5995 MB / 0.6463 GB, free: 7.441 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009337/1.457, allocations: 15.98 kB / 0.6464 GB, free: 7.426 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003172/1.461, allocations: 87.91 kB / 0.6464 GB, free: 7.34 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000962/1.462, allocations: 181.7 kB / 0.6466 GB, free: 7.164 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002822/1.462, allocations: 67.98 kB / 0.6467 GB, free: 7.098 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.003688/1.466, allocations: 1.317 MB / 0.648 GB, free: 5.762 MB / 411.1 MB Notification: Performance of sort global known variables: time 6.31e-07/1.466, allocations: 0 / 0.648 GB, free: 5.762 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.004792/1.471, allocations: 0.7188 MB / 0.6487 GB, free: 5.043 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * 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,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3605/1.831, allocations: 6.89 MB / 0.6554 GB, free: 95.18 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01358/1.845, allocations: 3.624 MB / 0.6589 GB, free: 94.64 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.471e-05/1.845, allocations: 1.062 kB / 0.6589 GB, free: 94.64 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008783/1.854, allocations: 2.346 MB / 0.6612 GB, free: 94.09 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005213/1.859, allocations: 0.5216 MB / 0.6617 GB, free: 94.08 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02507/1.884, allocations: 7.192 MB / 0.6688 GB, free: 92.73 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005819/1.89, allocations: 2.803 MB / 0.6715 GB, free: 91.96 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003892/1.894, allocations: 1.378 MB / 0.6728 GB, free: 91.96 MB / 411.1 MB Notification: Performance of SimCode: time 1.413e-06/1.894, allocations: 0 / 0.6728 GB, free: 91.96 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.554/6.448, allocations: 151.3 MB / 0.8206 GB, free: 120.6 MB / 443.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.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_Transformer_res.mat does not exist to compare? outputFormat=mat