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_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_cpp_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_cpp_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.001632/0.001638, allocations: 187 kB / 16.4 MB, free: 5.625 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.082/2.082, allocations: 205.4 MB / 222.5 MB, free: 13.77 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.001229/0.001229, allocations: 94.83 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004104/0.0004105, allocations: 11.94 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.103, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01141/0.1145, allocations: 6.431 MB / 381.1 MB, free: 8.859 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006507/0.1211, allocations: 2.544 MB / 383.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001257/0.1224, allocations: 19.94 kB / 383.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002288/0.1247, allocations: 477.7 kB / 384.1 MB, free: 5.82 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002314/0.1271, allocations: 482.6 kB / 384.6 MB, free: 5.348 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009392/0.128, allocations: 155.8 kB / 384.7 MB, free: 5.195 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002966/0.131, allocations: 1.038 MB / 385.8 MB, free: 4.156 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.1322, allocations: 423.2 kB / 386.2 MB, free: 3.727 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009653/0.1331, allocations: 438.2 kB / 386.6 MB, free: 3.297 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009515/0.1341, allocations: 477.8 kB / 387.1 MB, free: 2.828 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002866/0.1344, allocations: 60 kB / 387.1 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000525/0.135, allocations: 104 kB / 387.2 MB, free: 2.668 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002238/0.1352, allocations: 183.2 kB / 387.4 MB, free: 2.488 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004143/0.1356, allocations: 261.1 kB / 387.7 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00221/0.1379, allocations: 1.293 MB / 389 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1379, allocations: 0 / 389 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.719e-06/0.1379, allocations: 3.984 kB / 389 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.29e-05/0.138, allocations: 3.938 kB / 389 MB, free: 0.9219 MB / 282.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.2606/0.3986, allocations: 1.249 MB / 390.2 MB, free: 20.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/0.3987, allocations: 9.906 kB / 390.2 MB, free: 20.14 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004885/0.3992, allocations: 151 kB / 390.4 MB, free: 20.11 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009458/0.4002, allocations: 170.1 kB / 390.5 MB, free: 20.04 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002174/0.4024, allocations: 0.6988 MB / 391.2 MB, free: 19.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.4025, allocations: 72.59 kB / 391.3 MB, free: 19.73 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002747/0.4028, allocations: 108.2 kB / 391.4 MB, free: 19.72 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00279/0.4056, allocations: 0.9224 MB / 392.3 MB, free: 19.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-05/0.4057, allocations: 3.734 kB / 392.3 MB, free: 19.41 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.4059, allocations: 40.25 kB / 392.4 MB, free: 19.38 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.19e-05/0.4059, allocations: 24.75 kB / 392.4 MB, free: 19.38 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002336/0.4083, allocations: 0.6355 MB / 393 MB, free: 19.15 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009251/0.4176, allocations: 3.9 MB / 396.9 MB, free: 16.56 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.4187, allocations: 435.3 kB / 397.4 MB, free: 16.3 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.76e-05/0.4188, allocations: 4.453 kB / 397.4 MB, free: 16.3 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.4189, allocations: 42.59 kB / 397.4 MB, free: 16.26 MB / 282.7 MB Notification: Performance of pre-optimization done (n=40): time 3.086e-06/0.4189, allocations: 0 / 397.4 MB, free: 16.26 MB / 282.7 MB Notification: Performance of matching and sorting (n=44): time 0.004481/0.4234, allocations: 1.391 MB / 398.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.4235, allocations: 82.19 kB / 398.9 MB, free: 15.29 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/0.4251, allocations: 0.768 MB / 399.7 MB, free: 14.94 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.013e-05/0.4253, allocations: 31.8 kB / 399.7 MB, free: 14.91 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004317/0.4257, allocations: 0.5698 MB / 400.3 MB, free: 14.42 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.4259, allocations: 162.1 kB / 400.4 MB, free: 14.3 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.114e-05/0.426, allocations: 14.69 kB / 400.4 MB, free: 14.29 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.992e-05/0.4261, allocations: 338.6 kB / 400.8 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006089/0.4267, allocations: 163.1 kB / 400.9 MB, free: 13.91 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007234/0.4274, allocations: 456.1 kB / 401.4 MB, free: 13.47 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007552/0.4282, allocations: 240.1 kB / 401.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.158e-06/0.4282, allocations: 2.219 kB / 401.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002016/0.4303, allocations: 0.6997 MB / 402.3 MB, free: 13.04 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.4303, allocations: 10.05 kB / 402.3 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.42e-05/0.4304, allocations: 9.188 kB / 402.3 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003689/0.4307, allocations: 69.31 kB / 402.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.4318, allocations: 158.2 kB / 402.5 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002588/0.4344, allocations: 2.808 MB / 405.4 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.4355, allocations: 38.8 kB / 405.4 MB, free: 10.19 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.622e-05/0.4356, allocations: 33.31 kB / 405.4 MB, free: 10.18 MB / 282.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 () * Number of clocked 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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006411/0.4363, allocations: 258.7 kB / 405.7 MB, free: 9.977 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002667/0.4366, allocations: 88.48 kB / 405.8 MB, free: 9.93 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.4381, allocations: 481.8 kB / 406.2 MB, free: 9.699 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.281e-05/0.4382, allocations: 4.625 kB / 406.2 MB, free: 9.699 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.4382, allocations: 0.9375 kB / 406.2 MB, free: 9.699 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.4382, allocations: 6.156 kB / 406.2 MB, free: 9.695 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003781/0.442, allocations: 1.384 MB / 407.6 MB, free: 8.906 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4421, allocations: 2.406 kB / 407.6 MB, free: 8.906 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006514/0.4428, allocations: 77.91 kB / 407.7 MB, free: 8.895 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003015/0.4431, allocations: 61.16 kB / 407.8 MB, free: 8.867 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.757e-05/0.4432, allocations: 8.172 kB / 407.8 MB, free: 8.863 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002358/0.4455, allocations: 2.798 MB / 410.6 MB, free: 6.078 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4456, allocations: 6.406 kB / 410.6 MB, free: 6.074 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.4477, allocations: 0.8345 MB / 411.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005454/0.4483, allocations: 191.3 kB / 411.6 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001704/0.4485, allocations: 14.23 kB / 411.6 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007138/0.4492, allocations: 26.73 kB / 411.6 MB, free: 5.332 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.4494, allocations: 38.06 kB / 411.7 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.332e-05/0.4494, allocations: 14.98 kB / 411.7 MB, free: 5.316 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001111/0.4505, allocations: 0.5146 MB / 412.2 MB, free: 5.086 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4506, allocations: 0 / 412.2 MB, free: 5.086 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001524/0.4521, allocations: 199.8 kB / 412.4 MB, free: 5.07 MB / 282.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 () * Number of clocked 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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002528/0.4547, allocations: 1.881 MB / 414.3 MB, free: 3.492 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001857/0.4566, allocations: 0.6793 MB / 415 MB, free: 3.074 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/0.4566, allocations: 7.922 kB / 415 MB, free: 3.066 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.4577, allocations: 436.1 kB / 415.4 MB, free: 2.742 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001907/0.4596, allocations: 201.2 kB / 415.6 MB, free: 2.648 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01719/0.4769, allocations: 11.42 MB / 427 MB, free: 8.766 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008195/0.4777, allocations: 1.022 MB / 428 MB, free: 7.914 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008618/0.4786, allocations: 378.6 kB / 428.4 MB, free: 7.594 MB / 298.7 MB Notification: Performance of SimCode: time 1.223e-06/0.4787, allocations: 3.938 kB / 428.4 MB, free: 7.59 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.052/3.531, allocations: 24.16 MB / 452.6 MB, free: 15.7 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat