Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 91.02 kB / 16.31 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 180.1 kB / 17.21 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 223.2 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003219/0.000322, allocations: 9.031 kB / 300.9 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1281, allocations: 50.41 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.01252/0.1406, allocations: 11.39 MB / 362.7 MB, free: 188 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007837/0.1485, allocations: 3.963 MB / 366.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002035/0.1506, allocations: 71.69 kB / 366.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002168/0.1528, allocations: 0.7728 MB / 367.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.1558, allocations: 1.026 MB / 368.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.1569, allocations: 319.5 kB / 368.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005233/0.1621, allocations: 4.808 MB / 373.7 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003338/0.1655, allocations: 2.594 MB / 376.3 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002816/0.1683, allocations: 1.568 MB / 377.8 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003183/0.1715, allocations: 2.086 MB / 379.9 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005763/0.1721, allocations: 244 kB / 380.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001061/0.1732, allocations: 307.9 kB / 380.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.1744, allocations: 1.137 MB / 381.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00143/0.1758, allocations: 0.8394 MB / 382.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006706/0.1825, allocations: 5.995 MB / 388.4 MB, free: 6.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.1826, allocations: 0 / 388.4 MB, free: 6.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.35e-06/0.1826, allocations: 4 kB / 388.4 MB, free: 6.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002356/0.1828, allocations: 4 kB / 388.4 MB, free: 6.336 MB / 318.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.009398/0.1922, allocations: 3.996 MB / 392.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.1923, allocations: 12.03 kB / 392.5 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001425/0.1937, allocations: 0.5018 MB / 393 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.1952, allocations: 0.5024 MB / 393.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004341/0.1996, allocations: 2.404 MB / 395.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002052/0.1998, allocations: 267 kB / 396.1 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005804/0.2004, allocations: 351.9 kB / 396.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01038/0.2108, allocations: 5.013 MB / 401.5 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001326/0.211, allocations: 7.859 kB / 401.5 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005442/0.2115, allocations: 148 kB / 401.6 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002001/0.2117, allocations: 183 kB / 401.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009072/0.2208, allocations: 4.298 MB / 406.1 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03163/0.2525, allocations: 14.98 MB / 421.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005293/0.2578, allocations: 4.191 MB / 425.3 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2363/0.4942, allocations: 2.001 MB / 427.3 MB, free: 60.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003474/0.4946, allocations: 134.8 kB / 427.4 MB, free: 60.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.433e-05/0.4946, allocations: 56.88 kB / 427.5 MB, free: 60.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 3.868e-06/0.4946, allocations: 0 / 427.5 MB, free: 60.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.02376/0.5184, allocations: 10.03 MB / 437.5 MB, free: 59.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.911e-05/0.5185, allocations: 74 kB / 437.6 MB, free: 59.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004397/0.5229, allocations: 2.491 MB / 440.1 MB, free: 59.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002614/0.5232, allocations: 65.61 kB / 440.1 MB, free: 59.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009624/0.5242, allocations: 1.617 MB / 441.7 MB, free: 57.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005731/0.5247, allocations: 0.7268 MB / 442.5 MB, free: 57.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.5249, allocations: 47.81 kB / 442.5 MB, free: 57.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.525, allocations: 399.7 kB / 442.9 MB, free: 56.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/0.5268, allocations: 1.309 MB / 444.2 MB, free: 56.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002049/0.5289, allocations: 1.772 MB / 446 MB, free: 55.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/0.5309, allocations: 1.56 MB / 447.5 MB, free: 54.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.531, allocations: 4.312 kB / 447.5 MB, free: 54.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006316/0.5373, allocations: 4.077 MB / 451.6 MB, free: 52.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.095e-05/0.5374, allocations: 15.95 kB / 451.6 MB, free: 52.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.46e-05/0.5374, allocations: 12 kB / 451.7 MB, free: 52.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00253/0.5399, allocations: 0.8847 MB / 452.5 MB, free: 51.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002009/0.542, allocations: 0.5305 MB / 453.1 MB, free: 51.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007985/0.55, allocations: 8.74 MB / 461.8 MB, free: 41.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002694/0.5527, allocations: 115.9 kB / 461.9 MB, free: 41.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002689/0.553, allocations: 87.98 kB / 462 MB, free: 41.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * 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 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002695/0.5557, allocations: 1.212 MB / 463.2 MB, free: 40.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008386/0.5565, allocations: 272.7 kB / 463.5 MB, free: 40.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005668/0.5622, allocations: 3.734 MB / 467.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.5623, allocations: 24 kB / 467.2 MB, free: 36.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.5623, allocations: 4.75 kB / 467.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/0.5623, allocations: 15.95 kB / 467.3 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01329/0.5756, allocations: 8.091 MB / 475.4 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.5757, allocations: 7.953 kB / 475.4 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/0.5771, allocations: 387.8 kB / 475.7 MB, free: 27.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002513/0.5796, allocations: 0.9329 MB / 476.7 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001319/0.5797, allocations: 51.97 kB / 476.7 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008527/0.5883, allocations: 10.21 MB / 486.9 MB, free: 16.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.5883, allocations: 4 kB / 486.9 MB, free: 16.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007304/0.5956, allocations: 5.525 MB / 492.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001546/0.5972, allocations: 0.6382 MB / 493.1 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003987/0.5976, allocations: 52.17 kB / 493.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.5989, allocations: 127.9 kB / 493.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003731/0.5992, allocations: 189.7 kB / 493.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.5994, allocations: 55.98 kB / 493.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002186/0.6016, allocations: 1.711 MB / 495.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6016, allocations: 0 / 495.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002397/0.604, allocations: 0.8033 MB / 496 MB, free: 6.949 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * 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 {(3,88.9%) 25,(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.007193/0.6112, allocations: 6.183 MB / 0.4904 GB, free: 0.7031 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006503/0.6177, allocations: 3.89 MB / 0.4942 GB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.762e-06/0.6177, allocations: 0 / 0.4942 GB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004159/0.6219, allocations: 2.502 MB / 0.4967 GB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004763/0.6267, allocations: 0.7545 MB / 0.4974 GB, free: 9.414 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05288/0.6796, allocations: 24.48 MB / 0.5213 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00389/0.6835, allocations: 2.769 MB / 0.524 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002643/0.6862, allocations: 0.6788 MB / 0.5247 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002161/0.6884, allocations: 1.409 MB / 0.5261 GB, free: 10.64 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6884, allocations: 0 / 0.5261 GB, free: 10.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3505/1.039, allocations: 70.52 MB / 0.5949 GB, free: 138 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/1.039, allocations: 283 kB / 0.5952 GB, free: 137.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.795/4.834, allocations: 0 / 0.5952 GB, free: 137.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat