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_Initialize.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_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Initialize",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.002339/0.002339, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.223/2.223, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001179/0.001179, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003972/0.0003973, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.09858, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Initialize): time 0.01293/0.1116, allocations: 7.177 MB / 381.8 MB, free: 8.133 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007936/0.1195, allocations: 2.808 MB / 384.6 MB, free: 5.312 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001604/0.1212, allocations: 35.81 kB / 384.7 MB, free: 5.277 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002764/0.124, allocations: 0.4976 MB / 385.2 MB, free: 4.777 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003602/0.1277, allocations: 0.6152 MB / 385.8 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.129, allocations: 199.8 kB / 386 MB, free: 3.965 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004001/0.133, allocations: 1.548 MB / 387.5 MB, free: 2.41 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002558/0.1356, allocations: 1.195 MB / 388.7 MB, free: 1.18 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001701/0.1373, allocations: 0.7356 MB / 389.4 MB, free: 452 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.258/0.3954, allocations: 0.9568 MB / 390.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006179/0.396, allocations: 119.2 kB / 390.5 MB, free: 10.39 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001003/0.397, allocations: 183.2 kB / 390.7 MB, free: 10.39 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001062/0.3981, allocations: 0.5829 MB / 391.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000908/0.399, allocations: 451 kB / 391.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005863/0.4049, allocations: 2.92 MB / 394.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.405, allocations: 0 / 394.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.405, allocations: 1 kB / 394.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001454/0.4051, allocations: 1.656 kB / 394.6 MB, free: 10.18 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.008485/0.4136, allocations: 2.203 MB / 396.9 MB, free: 9.121 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.4137, allocations: 8.312 kB / 396.9 MB, free: 9.121 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001298/0.415, allocations: 264.7 kB / 397.1 MB, free: 9.074 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001445/0.4165, allocations: 259.2 kB / 397.4 MB, free: 8.957 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004365/0.4209, allocations: 1.275 MB / 398.6 MB, free: 8.574 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002048/0.4211, allocations: 136.2 kB / 398.8 MB, free: 8.57 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009732/0.4221, allocations: 182 kB / 399 MB, free: 8.566 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008662/0.4308, allocations: 2.384 MB / 401.3 MB, free: 8.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001008/0.4309, allocations: 10.69 kB / 401.4 MB, free: 8.32 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002813/0.4312, allocations: 71.59 kB / 401.4 MB, free: 8.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001566/0.4314, allocations: 84.88 kB / 401.5 MB, free: 8.312 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007279/0.4387, allocations: 2.021 MB / 403.5 MB, free: 7.977 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02103/0.4598, allocations: 7.451 MB / 411 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003104/0.4629, allocations: 1.283 MB / 412.3 MB, free: 2.871 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003091/0.4633, allocations: 121.8 kB / 412.4 MB, free: 2.766 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.4633, allocations: 38 kB / 412.4 MB, free: 2.723 MB / 282.7 MB Notification: Performance of pre-optimization done (n=84): time 3.396e-06/0.4633, allocations: 0 / 412.4 MB, free: 2.723 MB / 282.7 MB Notification: Performance of matching and sorting (n=100): time 0.01577/0.4791, allocations: 5.061 MB / 417.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/0.4792, allocations: 64.16 kB / 417.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003245/0.4825, allocations: 1.334 MB / 418.9 MB, free: 14.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003223/0.4828, allocations: 45.7 kB / 418.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008993/0.4837, allocations: 0.8631 MB / 419.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005711/0.4843, allocations: 349.9 kB / 420.1 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.4845, allocations: 20 kB / 420.1 MB, free: 13.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.4847, allocations: 358.8 kB / 420.5 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001884/0.4866, allocations: 0.6428 MB / 421.1 MB, free: 12.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002158/0.4887, allocations: 0.925 MB / 422.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002285/0.4911, allocations: 0.7729 MB / 422.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.308e-05/0.4911, allocations: 4 kB / 422.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.007443/0.4986, allocations: 2.336 MB / 425.2 MB, free: 8.406 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.087e-05/0.4986, allocations: 11.98 kB / 425.2 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.653e-05/0.4987, allocations: 8 kB / 425.2 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00353/0.5022, allocations: 0.7397 MB / 425.9 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.5042, allocations: 235 kB / 426.2 MB, free: 7.426 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01926/0.5234, allocations: 8.56 MB / 434.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/0.5255, allocations: 84.16 kB / 434.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001853/0.5257, allocations: 52 kB / 434.9 MB, free: 14.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 1,(6,77.8%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002326/0.528, allocations: 0.6199 MB / 435.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006894/0.5287, allocations: 150.2 kB / 435.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00657/0.5353, allocations: 1.922 MB / 437.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.313e-05/0.5354, allocations: 12 kB / 437.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.5354, allocations: 5.75 kB / 437.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.943e-05/0.5355, allocations: 3.984 kB / 437.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01223/0.5477, allocations: 3.993 MB / 441.6 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.5477, allocations: 0 / 441.6 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00161/0.5494, allocations: 181.8 kB / 441.7 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/0.5516, allocations: 463.1 kB / 442.2 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001874/0.5519, allocations: 35.98 kB / 442.2 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/0.5621, allocations: 6.263 MB / 448.5 MB, free: 460 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.5621, allocations: 0 / 448.5 MB, free: 460 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007978/0.5701, allocations: 2.913 MB / 451.4 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/0.5715, allocations: 347.2 kB / 451.7 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003603/0.5719, allocations: 32.17 kB / 451.8 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.5733, allocations: 71.92 kB / 451.8 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003696/0.5737, allocations: 96 kB / 451.9 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.5738, allocations: 23.98 kB / 452 MB, free: 12.9 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002321/0.5762, allocations: 0.9113 MB / 452.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.863e-06/0.5762, allocations: 0 / 452.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002603/0.5788, allocations: 434 kB / 453.3 MB, free: 11.56 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 80 * 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: 3 * 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 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008716/0.5875, allocations: 3.969 MB / 457.3 MB, free: 7.523 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005895/0.5935, allocations: 2.04 MB / 459.3 MB, free: 5.492 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.5935, allocations: 1.875 kB / 459.3 MB, free: 5.492 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003643/0.5972, allocations: 1.366 MB / 460.7 MB, free: 4.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003034/0.6002, allocations: 347.6 kB / 461 MB, free: 3.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04178/0.642, allocations: 18.13 MB / 479.1 MB, free: 1.168 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002156/0.6443, allocations: 1.704 MB / 480.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/0.646, allocations: 0.7076 MB / 481.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/0.646, allocations: 0 / 481.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.476/4.122, allocations: 59.95 MB / 0.5288 GB, free: 2.664 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Initialize.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Initialize.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_Initialize_res.mat does not exist to compare? outputFormat=mat