Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.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 3.2.3+maint.om/package.mo", uses=false) 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 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.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",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.0009512/0.0009569, allocations: 96.08 kB / 16.95 MB, free: 6.062 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.001117/0.001118, allocations: 179 kB / 17.84 MB, free: 5.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.931/1.931, allocations: 205.4 MB / 224 MB, free: 13.02 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004489/0.000449, allocations: 8 kB / 280.9 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1158, allocations: 47.59 MB / 328.5 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004205/0.1201, allocations: 3.468 MB / 331.9 MB, free: 476 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.1219, allocations: 0.8891 MB / 332.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002522/0.1222, allocations: 8 kB / 332.8 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.1224, allocations: 67.44 kB / 332.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003706/0.1228, allocations: 154.8 kB / 333 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003458/0.1231, allocations: 95.83 kB / 333.1 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006409/0.1238, allocations: 0.6186 MB / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003048/0.1241, allocations: 162.2 kB / 333.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.1244, allocations: 227.1 kB / 334.1 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003123/0.1247, allocations: 250.8 kB / 334.4 MB, free: 14 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.029e-05/0.1248, allocations: 32 kB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.249e-05/0.1249, allocations: 32 kB / 334.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.516e-05/0.125, allocations: 95.53 kB / 334.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.1251, allocations: 133.3 kB / 334.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004624/0.1256, allocations: 474.8 kB / 335.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.1256, allocations: 0 / 335.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1256, allocations: 0 / 335.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.1256, allocations: 0 / 335.1 MB, free: 13.24 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001491/0.1271, allocations: 0.7831 MB / 335.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.459e-05/0.1272, allocations: 8.031 kB / 335.9 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001805/0.1274, allocations: 111.7 kB / 336 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.1275, allocations: 67.25 kB / 336.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004856/0.128, allocations: 354.6 kB / 336.4 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/0.1281, allocations: 45.27 kB / 336.5 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.699e-05/0.1282, allocations: 55.84 kB / 336.5 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008775/0.129, allocations: 0.4955 MB / 337 MB, free: 11.22 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.1291, allocations: 0 / 337 MB, free: 11.22 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.053e-05/0.1291, allocations: 28 kB / 337.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.1291, allocations: 12 kB / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006434/0.1298, allocations: 348.7 kB / 337.4 MB, free: 10.83 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002888/0.1327, allocations: 1.744 MB / 339.2 MB, free: 8.988 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004686/0.1332, allocations: 265.1 kB / 339.4 MB, free: 8.711 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.1334, allocations: 149.6 kB / 339.6 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.1335, allocations: 4 kB / 339.6 MB, free: 8.555 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.19e-05/0.1335, allocations: 38.56 kB / 339.6 MB, free: 8.508 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.734e-06/0.1335, allocations: 0 / 339.6 MB, free: 8.508 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002049/0.1356, allocations: 0.9739 MB / 340.6 MB, free: 7.457 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.1357, allocations: 85.05 kB / 340.7 MB, free: 7.355 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004646/0.1362, allocations: 381.6 kB / 341 MB, free: 6.973 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.1362, allocations: 33.7 kB / 341.1 MB, free: 6.934 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.1364, allocations: 299.3 kB / 341.4 MB, free: 6.633 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.507e-05/0.1365, allocations: 110.4 kB / 341.5 MB, free: 6.523 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.847e-05/0.1366, allocations: 4 kB / 341.5 MB, free: 6.52 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.1368, allocations: 362.7 kB / 341.8 MB, free: 6.156 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002071/0.137, allocations: 108.8 kB / 341.9 MB, free: 6.051 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.1373, allocations: 194.8 kB / 342.1 MB, free: 5.824 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.1375, allocations: 132.8 kB / 342.3 MB, free: 5.695 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1375, allocations: 0 / 342.3 MB, free: 5.695 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008184/0.1384, allocations: 464.7 kB / 342.7 MB, free: 5.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.1384, allocations: 4.312 kB / 342.7 MB, free: 5.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.1384, allocations: 8 kB / 342.7 MB, free: 5.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003636/0.1388, allocations: 77.66 kB / 342.8 MB, free: 5.137 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.1391, allocations: 79.91 kB / 342.9 MB, free: 5.059 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002629/0.1418, allocations: 2.845 MB / 345.7 MB, free: 1.949 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003459/0.1421, allocations: 23.86 kB / 345.7 MB, free: 1.926 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.1422, allocations: 16 kB / 345.8 MB, free: 1.91 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000336/0.1425, allocations: 169.7 kB / 345.9 MB, free: 1.734 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.1427, allocations: 43.52 kB / 346 MB, free: 1.691 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.553e-05/0.1428, allocations: 47.52 kB / 346 MB, free: 1.645 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1428, allocations: 4 kB / 346 MB, free: 1.641 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.1428, allocations: 4 kB / 346 MB, free: 1.637 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1428, allocations: 0 / 346 MB, free: 1.637 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.1443, allocations: 0.9557 MB / 347 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1443, allocations: 0 / 347 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.1445, allocations: 43.92 kB / 347 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002836/0.1448, allocations: 89.73 kB / 347.1 MB, free: 492 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.1448, allocations: 11.98 kB / 347.1 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002605/0.1475, allocations: 2.849 MB / 350 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1475, allocations: 0 / 350 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.1485, allocations: 0.6246 MB / 350.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.1487, allocations: 120.6 kB / 350.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.431e-05/0.1487, allocations: 8.188 kB / 350.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.149, allocations: 35.98 kB / 350.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.633e-05/0.1491, allocations: 32.03 kB / 350.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.1491, allocations: 12 kB / 350.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003323/0.1495, allocations: 275.1 kB / 351.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1495, allocations: 3.938 kB / 351.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007631/0.1503, allocations: 124 kB / 351.2 MB, free: 12.09 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001281/0.1515, allocations: 1.162 MB / 352.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009562/0.1525, allocations: 0.5172 MB / 352.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.1525, allocations: 0 / 352.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005589/0.1531, allocations: 389.7 kB / 353.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005757/0.1537, allocations: 72.5 kB / 353.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004492/0.1582, allocations: 2.684 MB / 356 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000634/0.1589, allocations: 0.847 MB / 356.8 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002316/0.1591, allocations: 43.28 kB / 356.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.1594, allocations: 171.4 kB / 357.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1594, allocations: 0 / 357.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.1823, allocations: 8.047 MB / 365.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002859/0.1827, allocations: 223.2 kB / 365.3 MB, free: 13.72 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.212/2.395, allocations: 0 / 365.3 MB, free: 13.72 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat