Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.002348/0.002347, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.101/2.101, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001091/0.00109, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.438e-05/3.448e-05, allocations: 11.94 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.09597, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4348/0.5308, allocations: 98.21 MB / 467.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.5312, allocations: 82.7 kB / 467.5 MB, free: 11.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1271/0.6583, allocations: 28.7 MB / 496.2 MB, free: 15.94 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.6583, allocations: 4.656 kB / 496.2 MB, free: 15.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000101/0.6585, allocations: 20 kB / 496.2 MB, free: 15.91 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003396/0.6619, allocations: 1.138 MB / 497.3 MB, free: 14.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.6619, allocations: 12.03 kB / 497.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004031/0.6624, allocations: 148.2 kB / 497.5 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/0.6635, allocations: 190.3 kB / 497.7 MB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002648/0.6661, allocations: 0.8088 MB / 498.5 MB, free: 13.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.065e-05/0.6663, allocations: 77.95 kB / 498.6 MB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002453/0.6665, allocations: 99.94 kB / 498.7 MB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002479/0.669, allocations: 0.892 MB / 499.6 MB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-05/0.6691, allocations: 19.83 kB / 499.6 MB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001348/0.6693, allocations: 36 kB / 499.6 MB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.249e-05/0.6693, allocations: 24 kB / 499.6 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/0.6712, allocations: 0.5975 MB / 0.4885 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008868/0.6801, allocations: 3.951 MB / 0.4924 GB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.6812, allocations: 428.7 kB / 0.4928 GB, free: 7.137 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008294/0.682, allocations: 253.5 kB / 0.493 GB, free: 6.887 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.46e-05/0.6821, allocations: 4 kB / 0.493 GB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.6822, allocations: 35.28 kB / 0.4931 GB, free: 6.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 4.038e-06/0.6822, allocations: 4 kB / 0.4931 GB, free: 6.836 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.003556/0.6858, allocations: 1.232 MB / 0.4943 GB, free: 5.539 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.6859, allocations: 81.55 kB / 0.4943 GB, free: 5.441 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/0.6874, allocations: 0.6958 MB / 0.495 GB, free: 4.742 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.182e-05/0.6876, allocations: 37.7 kB / 0.4951 GB, free: 4.699 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005244/0.6881, allocations: 0.5784 MB / 0.4956 GB, free: 4.113 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002214/0.6883, allocations: 177.6 kB / 0.4958 GB, free: 3.938 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.6884, allocations: 8 kB / 0.4958 GB, free: 3.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.6886, allocations: 350.8 kB / 0.4961 GB, free: 3.578 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004653/0.6891, allocations: 157.5 kB / 0.4963 GB, free: 3.426 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007511/0.6898, allocations: 442 kB / 0.4967 GB, free: 2.855 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006336/0.6905, allocations: 237.5 kB / 0.4969 GB, free: 2.621 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.6905, allocations: 4 kB / 0.4969 GB, free: 2.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001921/0.6924, allocations: 0.7122 MB / 0.4976 GB, free: 1.895 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/0.6925, allocations: 15.12 kB / 0.4976 GB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.6925, allocations: 8 kB / 0.4977 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004921/0.693, allocations: 101.9 kB / 0.4977 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.6941, allocations: 159.7 kB / 0.4979 GB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003713/0.6979, allocations: 3.006 MB / 0.5008 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.6991, allocations: 43.95 kB / 0.5009 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.299e-05/0.6992, allocations: 32 kB / 0.5009 GB, free: 14.27 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002212/0.6994, allocations: 148.7 kB / 0.5011 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.6996, allocations: 86.97 kB / 0.5011 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001488/0.7011, allocations: 0.4947 MB / 0.5016 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.7011, allocations: 8 kB / 0.5016 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.7012, allocations: 0 / 0.5016 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.7012, allocations: 3.984 kB / 0.5016 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003543/0.7047, allocations: 1.458 MB / 0.5031 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.7048, allocations: 4 kB / 0.5031 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006997/0.7055, allocations: 79.88 kB / 0.5031 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004196/0.7059, allocations: 93.75 kB / 0.5032 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.4e-05/0.706, allocations: 15.94 kB / 0.5032 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003562/0.7096, allocations: 2.974 MB / 0.5061 GB, free: 8.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.7096, allocations: 0 / 0.5061 GB, free: 8.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002038/0.7117, allocations: 0.864 MB / 0.507 GB, free: 7.562 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005149/0.7122, allocations: 203.9 kB / 0.5072 GB, free: 7.344 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.7124, allocations: 12 kB / 0.5072 GB, free: 7.332 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007978/0.7132, allocations: 35.97 kB / 0.5072 GB, free: 7.297 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.7134, allocations: 31.95 kB / 0.5073 GB, free: 7.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-05/0.7134, allocations: 16 kB / 0.5073 GB, free: 7.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00119/0.7146, allocations: 0.5343 MB / 0.5078 GB, free: 6.723 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.355e-06/0.7147, allocations: 0 / 0.5078 GB, free: 6.723 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001455/0.7161, allocations: 251.9 kB / 0.508 GB, free: 6.477 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003051/0.7192, allocations: 2.099 MB / 0.5101 GB, free: 4.301 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.7209, allocations: 0.6759 MB / 0.5107 GB, free: 3.598 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.721, allocations: 0.8125 kB / 0.5107 GB, free: 3.598 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.722, allocations: 457 kB / 0.5112 GB, free: 3.125 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001715/0.7238, allocations: 203.6 kB / 0.5114 GB, free: 2.922 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004799/0.7286, allocations: 1.497 MB / 0.5128 GB, free: 1.359 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008641/0.7295, allocations: 1.032 MB / 0.5138 GB, free: 308 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008506/0.7304, allocations: 391.4 kB / 0.5142 GB, free: 15.91 MB / 410.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7304, allocations: 0 / 0.5142 GB, free: 15.91 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.367/4.097, allocations: 25.86 MB / 0.5395 GB, free: 117.1 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat