Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",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.001289/0.001288, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008673/0.0008673, allocations: 87.61 kB / 262.4 MB, free: 1.625 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.575e-05/1.577e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08676/0.08679, allocations: 47.58 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3206/0.4075, allocations: 97.04 MB / 460.2 MB, free: 14.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.4078, allocations: 78.27 kB / 460.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07123/0.4791, allocations: 27.8 MB / 488.1 MB, free: 7.965 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4791, allocations: 0 / 488.1 MB, free: 7.965 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.004e-05/0.4792, allocations: 28.64 kB / 488.1 MB, free: 7.938 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001732/0.4809, allocations: 1.118 MB / 489.2 MB, free: 6.84 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.481, allocations: 8.031 kB / 489.2 MB, free: 6.832 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006378/0.4816, allocations: 190.4 kB / 489.4 MB, free: 6.645 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.483, allocations: 0.7901 MB / 490.2 MB, free: 5.984 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.348e-05/0.483, allocations: 35.94 kB / 490.3 MB, free: 5.949 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.4832, allocations: 63.86 kB / 490.3 MB, free: 5.887 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009067/0.4841, allocations: 0.5307 MB / 490.8 MB, free: 5.574 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.4853, allocations: 0.7502 MB / 491.6 MB, free: 4.863 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.066e-05/0.4854, allocations: 8 kB / 491.6 MB, free: 4.855 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.833e-05/0.4855, allocations: 0 / 491.6 MB, free: 4.855 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.4855, allocations: 24 kB / 491.6 MB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005058/0.4905, allocations: 3.721 MB / 495.3 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006022/0.4912, allocations: 420.7 kB / 495.8 MB, free: 476 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004487/0.4917, allocations: 233.3 kB / 496 MB, free: 240 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.122e-05/0.4917, allocations: 7.984 kB / 496 MB, free: 232 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.4917, allocations: 42.34 kB / 496 MB, free: 180 kB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.356e-06/0.4918, allocations: 7.938 kB / 496 MB, free: 172 kB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.002129/0.4939, allocations: 1.095 MB / 497.1 MB, free: 15.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.516e-05/0.494, allocations: 89.53 kB / 497.2 MB, free: 14.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007286/0.4947, allocations: 0.5779 MB / 497.8 MB, free: 14.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.4947, allocations: 29.7 kB / 497.8 MB, free: 14.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003782/0.4951, allocations: 0.5525 MB / 498.4 MB, free: 13.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.4953, allocations: 165.6 kB / 498.5 MB, free: 13.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.077e-05/0.4953, allocations: 0 / 498.5 MB, free: 13.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.4955, allocations: 386.7 kB / 498.9 MB, free: 13.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/0.4957, allocations: 137.6 kB / 499.1 MB, free: 13.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/0.4962, allocations: 420.4 kB / 499.5 MB, free: 12.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003305/0.4965, allocations: 224.6 kB / 499.7 MB, free: 12.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.4965, allocations: 4 kB / 499.7 MB, free: 12.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001055/0.4976, allocations: 0.6572 MB / 0.4886 GB, free: 11.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.4976, allocations: 8 kB / 0.4886 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.4977, allocations: 15.98 kB / 0.4886 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002893/0.4979, allocations: 89.97 kB / 0.4887 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/0.4985, allocations: 155.7 kB / 0.4889 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002496/0.501, allocations: 2.879 MB / 0.4917 GB, free: 8.223 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007322/0.5017, allocations: 27.84 kB / 0.4917 GB, free: 8.195 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.085e-05/0.5018, allocations: 32 kB / 0.4917 GB, free: 8.164 MB / 378.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 (85): * Single equations (assignments): 83 * 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.0001832/0.502, allocations: 136.7 kB / 0.4919 GB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007232/0.5027, allocations: 424.8 kB / 0.4923 GB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.5028, allocations: 79.06 kB / 0.4924 GB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007846/0.5036, allocations: 453.5 kB / 0.4928 GB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.5036, allocations: 4 kB / 0.4928 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5036, allocations: 0 / 0.4928 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.5037, allocations: 7.953 kB / 0.4928 GB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.5056, allocations: 1.252 MB / 0.494 GB, free: 5.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.5056, allocations: 7.953 kB / 0.494 GB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003122/0.5059, allocations: 75.89 kB / 0.4941 GB, free: 5.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002258/0.5062, allocations: 86.05 kB / 0.4942 GB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.5062, allocations: 3.938 kB / 0.4942 GB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002353/0.5085, allocations: 2.867 MB / 0.497 GB, free: 2.445 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.5086, allocations: 4.031 kB / 0.497 GB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.5098, allocations: 0.8086 MB / 0.4978 GB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003069/0.5102, allocations: 184.2 kB / 0.498 GB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.783e-05/0.5103, allocations: 4 kB / 0.498 GB, free: 1.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003896/0.5107, allocations: 27.97 kB / 0.498 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.119e-05/0.5107, allocations: 39.84 kB / 0.498 GB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/0.5108, allocations: 16 kB / 0.498 GB, free: 1.258 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006028/0.5114, allocations: 439.2 kB / 0.4985 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5114, allocations: 4 kB / 0.4985 GB, free: 0.832 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008958/0.5123, allocations: 195.9 kB / 0.4987 GB, free: 0.6406 MB / 378.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 (39): * Single equations (assignments): 37 * 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.001821/0.5141, allocations: 1.994 MB / 0.5006 GB, free: 14.56 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.5152, allocations: 0.6189 MB / 0.5012 GB, free: 13.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5152, allocations: 7.938 kB / 0.5012 GB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005358/0.5157, allocations: 420.4 kB / 0.5016 GB, free: 13.49 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008628/0.5166, allocations: 167.8 kB / 0.5018 GB, free: 13.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/0.5195, allocations: 1.36 MB / 0.5031 GB, free: 11.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006265/0.5201, allocations: 1.036 MB / 0.5041 GB, free: 10.84 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004462/0.5206, allocations: 94.77 kB / 0.5042 GB, free: 10.74 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004632/0.5211, allocations: 371.3 kB / 0.5046 GB, free: 10.38 MB / 394.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5211, allocations: 0 / 0.5046 GB, free: 10.38 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04344/0.5645, allocations: 16.28 MB / 0.5205 GB, free: 10.07 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.5647, allocations: 144.8 kB / 0.5206 GB, free: 9.883 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.495/3.06, allocations: 0 / 0.5206 GB, free: 9.883 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat