Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001011/0.001011, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001285, allocations: 192.9 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002992/0.0002992, allocations: 4 kB / 306.8 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.12, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.007874/0.1279, allocations: 7.038 MB / 365.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004393/0.1323, allocations: 2.475 MB / 367.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006197/0.133, allocations: 27.88 kB / 367.9 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.1342, allocations: 413.6 kB / 368.3 MB, free: 4.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007874/0.135, allocations: 341.5 kB / 368.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003745/0.1354, allocations: 147.8 kB / 368.7 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.1364, allocations: 1.105 MB / 369.8 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000608/0.137, allocations: 400 kB / 370.2 MB, free: 2.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005378/0.1376, allocations: 390.3 kB / 370.6 MB, free: 1.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005135/0.1381, allocations: 441.9 kB / 371 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.182e-05/0.1382, allocations: 56 kB / 371.1 MB, free: 1.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002361/0.1385, allocations: 99.95 kB / 371.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.1386, allocations: 167.2 kB / 371.4 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.1388, allocations: 221.2 kB / 371.6 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.231/0.3698, allocations: 1.13 MB / 372.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/0.3699, allocations: 0.5625 kB / 372.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.938e-06/0.3699, allocations: 0 / 372.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.51e-05/0.37, allocations: 0.6875 kB / 372.7 MB, free: 10.79 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002374/0.3723, allocations: 1.166 MB / 373.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/0.3724, allocations: 9.094 kB / 373.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002151/0.3726, allocations: 131.6 kB / 374 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007684/0.3734, allocations: 183 kB / 374.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.3746, allocations: 0.6098 MB / 374.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.741e-05/0.3747, allocations: 66.8 kB / 374.9 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.3749, allocations: 83.64 kB / 374.9 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001933/0.3768, allocations: 0.8211 MB / 375.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.704e-05/0.3769, allocations: 9.609 kB / 375.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.943e-05/0.377, allocations: 34.94 kB / 375.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.634e-05/0.377, allocations: 24.03 kB / 375.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.3785, allocations: 0.5452 MB / 376.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005522/0.3841, allocations: 3.594 MB / 380 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000686/0.3848, allocations: 244.9 kB / 380.2 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.3851, allocations: 123.9 kB / 380.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.269e-05/0.3852, allocations: 3.656 kB / 380.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.3852, allocations: 35.83 kB / 380.4 MB, free: 7.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 2.415e-06/0.3852, allocations: 5.641 kB / 380.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002526/0.3878, allocations: 1.099 MB / 381.5 MB, free: 7.148 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.3878, allocations: 86.7 kB / 381.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/0.389, allocations: 0.7557 MB / 382.3 MB, free: 6.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.3891, allocations: 33.88 kB / 382.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000389/0.3895, allocations: 0.5119 MB / 382.9 MB, free: 6.613 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.901e-05/0.3896, allocations: 116.9 kB / 383 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-05/0.3896, allocations: 13 kB / 383 MB, free: 6.543 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3898, allocations: 380.5 kB / 383.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003037/0.3901, allocations: 138.2 kB / 383.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004129/0.3905, allocations: 460.5 kB / 383.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003591/0.3909, allocations: 200.4 kB / 384.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.3909, allocations: 3.344 kB / 384.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001149/0.392, allocations: 0.6598 MB / 384.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.3921, allocations: 16.61 kB / 384.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.3921, allocations: 12.86 kB / 384.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001718/0.3923, allocations: 39.02 kB / 384.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005615/0.3928, allocations: 156.6 kB / 385 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008017/0.3937, allocations: 1.293 MB / 386.3 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005843/0.3943, allocations: 43.89 kB / 386.4 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.886e-05/0.3943, allocations: 33.5 kB / 386.4 MB, free: 4.43 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003349/0.3947, allocations: 242.4 kB / 386.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.3948, allocations: 80 kB / 386.7 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007219/0.3955, allocations: 344.5 kB / 387 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3955, allocations: 3.875 kB / 387 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.3955, allocations: 0 / 387 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3955, allocations: 2.922 kB / 387 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/0.3975, allocations: 1.139 MB / 388.2 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.3975, allocations: 2.031 kB / 388.2 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003111/0.3978, allocations: 69.5 kB / 388.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.218e-05/0.3979, allocations: 22.27 kB / 388.3 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.3979, allocations: 8.297 kB / 388.3 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006601/0.3986, allocations: 1.278 MB / 389.6 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3986, allocations: 2.156 kB / 389.6 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009382/0.3996, allocations: 0.5885 MB / 390.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002282/0.3998, allocations: 184.2 kB / 390.3 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.552e-05/0.3999, allocations: 9.172 kB / 390.3 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000344/0.4003, allocations: 25.62 kB / 390.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.012e-05/0.4004, allocations: 27.58 kB / 390.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.4004, allocations: 12.23 kB / 390.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007586/0.4012, allocations: 0.5148 MB / 390.9 MB, free: 2.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4012, allocations: 1 kB / 390.9 MB, free: 2.062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008956/0.4021, allocations: 175.8 kB / 391.1 MB, free: 2.055 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,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 (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001188/0.4033, allocations: 1.158 MB / 392.3 MB, free: 1.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009863/0.4043, allocations: 486.4 kB / 392.7 MB, free: 1.152 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4043, allocations: 4.781 kB / 392.7 MB, free: 1.152 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003862/0.4047, allocations: 248.7 kB / 393 MB, free: 1.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009743/0.4057, allocations: 178.5 kB / 393.2 MB, free: 1.027 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008009/0.4137, allocations: 4.579 MB / 397.7 MB, free: 14.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006711/0.4144, allocations: 0.9519 MB / 398.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004974/0.4149, allocations: 99.09 kB / 398.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000418/0.4153, allocations: 308.8 kB / 399.1 MB, free: 13.43 MB / 318.1 MB Notification: Performance of SimCode: time 1.403e-06/0.4153, allocations: 0 / 399.1 MB, free: 13.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03509/0.4504, allocations: 14.72 MB / 413.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/0.4506, allocations: 219 kB / 414 MB, free: 1.707 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.195/2.646, allocations: 3.375 kB / 414 MB, free: 1.707 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat