Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009382/0.0009379, allocations: 98.11 kB / 16.94 MB, free: 6.441 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.0009887/0.0009887, allocations: 188.6 kB / 17.83 MB, free: 6.008 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.571/1.571, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004496/0.0004497, allocations: 15.44 kB / 280.9 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09559/0.09605, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007082/0.1032, allocations: 6.549 MB / 335 MB, free: 13.42 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004452/0.1077, allocations: 2.602 MB / 337.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000778/0.1085, allocations: 27.94 kB / 337.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.1098, allocations: 473.7 kB / 338.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.1109, allocations: 498.6 kB / 338.6 MB, free: 9.828 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.1114, allocations: 167.7 kB / 338.7 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001601/0.113, allocations: 1.046 MB / 339.8 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006161/0.1137, allocations: 427.3 kB / 340.2 MB, free: 8.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000565/0.1142, allocations: 438.2 kB / 340.6 MB, free: 7.754 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005554/0.1148, allocations: 493.7 kB / 341.1 MB, free: 7.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.1149, allocations: 67.92 kB / 341.2 MB, free: 7.203 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.1152, allocations: 99.98 kB / 341.3 MB, free: 7.105 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.1154, allocations: 183.2 kB / 341.4 MB, free: 6.926 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000216/0.1156, allocations: 265.1 kB / 341.7 MB, free: 6.66 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.1168, allocations: 1.32 MB / 343 MB, free: 5.336 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.1168, allocations: 4 kB / 343 MB, free: 5.332 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1168, allocations: 0 / 343 MB, free: 5.332 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.653e-05/0.1168, allocations: 3.938 kB / 343 MB, free: 5.328 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002102/0.1189, allocations: 1.281 MB / 344.3 MB, free: 3.992 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.119, allocations: 8.031 kB / 344.3 MB, free: 3.984 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000184/0.1192, allocations: 152.2 kB / 344.5 MB, free: 3.828 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000504/0.1197, allocations: 174.4 kB / 344.6 MB, free: 3.656 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.1208, allocations: 0.7153 MB / 345.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.381e-05/0.1208, allocations: 78 kB / 345.4 MB, free: 2.824 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.121, allocations: 99.91 kB / 345.5 MB, free: 2.727 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.1225, allocations: 0.9308 MB / 346.5 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.1226, allocations: 7.938 kB / 346.5 MB, free: 1.758 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.856e-05/0.1226, allocations: 40 kB / 346.5 MB, free: 1.719 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.386e-05/0.1227, allocations: 24 kB / 346.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.1239, allocations: 0.6559 MB / 347.2 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004962/0.1289, allocations: 3.926 MB / 351.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007107/0.1296, allocations: 452.3 kB / 351.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.838e-05/0.1297, allocations: 7.984 kB / 351.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.1297, allocations: 34.56 kB / 351.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.913e-06/0.1297, allocations: 4 kB / 351.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002611/0.1323, allocations: 1.446 MB / 353 MB, free: 10.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.1324, allocations: 81.11 kB / 353.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008984/0.1333, allocations: 0.7785 MB / 353.9 MB, free: 9.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.861e-05/0.1333, allocations: 33.7 kB / 353.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005106/0.1339, allocations: 0.5759 MB / 354.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.1341, allocations: 157.7 kB / 354.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.1341, allocations: 12 kB / 354.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1343, allocations: 337.9 kB / 355 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00033/0.1346, allocations: 177.9 kB / 355.2 MB, free: 8.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005264/0.1352, allocations: 471.6 kB / 355.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004156/0.1356, allocations: 255.8 kB / 355.9 MB, free: 7.816 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1356, allocations: 0 / 355.9 MB, free: 7.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001254/0.1369, allocations: 0.7751 MB / 356.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1369, allocations: 12.09 kB / 356.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.1369, allocations: 8 kB / 356.7 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002424/0.1372, allocations: 73.62 kB / 356.8 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/0.1377, allocations: 163.7 kB / 356.9 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.14, allocations: 2.802 MB / 359.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005858/0.1406, allocations: 51.91 kB / 359.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.158e-05/0.1407, allocations: 32 kB / 359.8 MB, free: 3.613 MB / 302.1 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 (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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004076/0.1411, allocations: 261.5 kB / 360.1 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.1412, allocations: 86.95 kB / 360.1 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008851/0.1421, allocations: 0.4914 MB / 360.6 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1421, allocations: 4 kB / 360.6 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.1422, allocations: 0 / 360.6 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.1422, allocations: 11.98 kB / 360.6 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.1443, allocations: 1.418 MB / 362.1 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.1443, allocations: 8.219 kB / 362.1 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003288/0.1446, allocations: 79.83 kB / 362.1 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001823/0.1448, allocations: 61.62 kB / 362.2 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.1448, allocations: 12 kB / 362.2 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002036/0.1469, allocations: 2.79 MB / 365 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1469, allocations: 4.031 kB / 365 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.1482, allocations: 0.8708 MB / 365.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002846/0.1485, allocations: 192 kB / 366.1 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.29e-05/0.1486, allocations: 15.98 kB / 366.1 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003771/0.149, allocations: 35.98 kB / 366.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.56e-05/0.1491, allocations: 35.91 kB / 366.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.1491, allocations: 12 kB / 366.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006933/0.1498, allocations: 0.5264 MB / 366.7 MB, free: 12.22 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1498, allocations: 4 kB / 366.7 MB, free: 12.22 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008581/0.1507, allocations: 200 kB / 366.9 MB, free: 12.02 MB / 318.1 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 (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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001817/0.1525, allocations: 1.925 MB / 368.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.1537, allocations: 0.704 MB / 369.5 MB, free: 9.285 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1538, allocations: 5.75 kB / 369.5 MB, free: 9.281 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000587/0.1543, allocations: 449.6 kB / 370 MB, free: 8.816 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009297/0.1553, allocations: 199.1 kB / 370.2 MB, free: 8.625 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1704/0.3257, allocations: 11.49 MB / 381.7 MB, free: 50.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005293/0.3263, allocations: 1.028 MB / 382.7 MB, free: 49.77 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004767/0.3268, allocations: 107.3 kB / 382.8 MB, free: 49.76 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004633/0.3272, allocations: 388.2 kB / 383.2 MB, free: 49.76 MB / 318.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3272, allocations: 0 / 383.2 MB, free: 49.76 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03501/0.3623, allocations: 17.19 MB / 400.4 MB, free: 41.5 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/0.3624, allocations: 212.8 kB / 400.6 MB, free: 41.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.054/2.417, allocations: 0 / 400.6 MB, free: 41.27 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat