Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.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.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",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.001259/0.001259, allocations: 89.3 kB / 16.95 MB, free: 6.102 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.00124/0.00124, allocations: 180 kB / 17.84 MB, free: 5.723 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.846/1.846, allocations: 205.4 MB / 224 MB, free: 13.07 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.0005039/0.0005042, allocations: 8 kB / 280.9 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1233, allocations: 47.58 MB / 328.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL): time 0.01257/0.136, allocations: 8.968 MB / 337.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008141/0.1442, allocations: 3.075 MB / 340.5 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002287/0.1466, allocations: 43.75 kB / 340.5 MB, free: 7.828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.1491, allocations: 0.563 MB / 341.1 MB, free: 7.262 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003748/0.1529, allocations: 0.7186 MB / 341.8 MB, free: 6.539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001618/0.1545, allocations: 263.6 kB / 342.1 MB, free: 6.281 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00588/0.1604, allocations: 3.035 MB / 345.1 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003958/0.1644, allocations: 1.623 MB / 346.7 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002594/0.1671, allocations: 1.004 MB / 347.7 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003435/0.1706, allocations: 1.385 MB / 349.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001058/0.1717, allocations: 152 kB / 349.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001693/0.1734, allocations: 231.8 kB / 349.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001679/0.1751, allocations: 0.771 MB / 350.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001508/0.1766, allocations: 0.551 MB / 350.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005528/0.1822, allocations: 3.732 MB / 354.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.1822, allocations: 0 / 354.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1822, allocations: 0 / 354.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002028/0.1824, allocations: 0 / 354.6 MB, free: 9.73 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.00723/0.1897, allocations: 2.805 MB / 357.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.1898, allocations: 8.031 kB / 357.4 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001224/0.191, allocations: 341.4 kB / 357.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001608/0.1926, allocations: 324.3 kB / 358 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004125/0.1968, allocations: 1.581 MB / 359.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002776/0.1971, allocations: 184.7 kB / 359.8 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007833/0.1979, allocations: 231.9 kB / 360 MB, free: 4.141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008958/0.2069, allocations: 3.133 MB / 363.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001263/0.2071, allocations: 3.906 kB / 363.1 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006336/0.2077, allocations: 103.9 kB / 363.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001564/0.2079, allocations: 108.5 kB / 363.4 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006841/0.2147, allocations: 2.708 MB / 366.1 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02247/0.2372, allocations: 9.782 MB / 375.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003506/0.2408, allocations: 2.189 MB / 378 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002245/0.2431, allocations: 1.143 MB / 379.2 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003721/0.2435, allocations: 207.2 kB / 379.4 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5e-05/0.2436, allocations: 51.56 kB / 379.4 MB, free: 116 kB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.346e-06/0.2436, allocations: 0 / 379.4 MB, free: 116 kB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.2289/0.4726, allocations: 6.783 MB / 386.2 MB, free: 48.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.4727, allocations: 64.66 kB / 386.3 MB, free: 48.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003998/0.4767, allocations: 1.735 MB / 388 MB, free: 48.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003145/0.477, allocations: 50.52 kB / 388.1 MB, free: 47.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009228/0.478, allocations: 1.152 MB / 389.2 MB, free: 47.08 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004317/0.4784, allocations: 455.2 kB / 389.7 MB, free: 46.74 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.159e-05/0.4785, allocations: 34.66 kB / 389.7 MB, free: 46.71 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4786, allocations: 369.6 kB / 390 MB, free: 46.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.48, allocations: 0.7936 MB / 390.8 MB, free: 46.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.4814, allocations: 1.218 MB / 392.1 MB, free: 45.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.4827, allocations: 0.9668 MB / 393 MB, free: 44.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.4828, allocations: 3.969 kB / 393 MB, free: 44.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004283/0.487, allocations: 2.681 MB / 395.7 MB, free: 43.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.4871, allocations: 10.03 kB / 395.7 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.881e-05/0.4872, allocations: 18.27 kB / 395.7 MB, free: 43.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008402/0.488, allocations: 423.1 kB / 396.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.4892, allocations: 365.4 kB / 396.5 MB, free: 43.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005077/0.4943, allocations: 6.472 MB / 403 MB, free: 38.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/0.4959, allocations: 114.1 kB / 403.1 MB, free: 38.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/0.4961, allocations: 62.41 kB / 403.2 MB, free: 38.34 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001385/0.4975, allocations: 0.8023 MB / 404 MB, free: 37.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004414/0.4979, allocations: 183.9 kB / 404.1 MB, free: 37.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003413/0.5013, allocations: 2.389 MB / 406.5 MB, free: 35.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.5014, allocations: 12 kB / 406.5 MB, free: 35.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.5014, allocations: 4 kB / 406.5 MB, free: 35.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.5014, allocations: 19.67 kB / 406.6 MB, free: 35.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007231/0.5086, allocations: 5.134 MB / 411.7 MB, free: 30.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.5087, allocations: 4 kB / 411.7 MB, free: 30.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008807/0.5096, allocations: 244.1 kB / 411.9 MB, free: 29.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009301/0.5105, allocations: 457.7 kB / 412.4 MB, free: 29.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.056e-05/0.5106, allocations: 35.98 kB / 412.4 MB, free: 29.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005634/0.5163, allocations: 7.932 MB / 420.4 MB, free: 21.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.5163, allocations: 4 kB / 420.4 MB, free: 21.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004886/0.5212, allocations: 3.55 MB / 423.9 MB, free: 17.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001085/0.5223, allocations: 439.6 kB / 424.3 MB, free: 16.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/0.5226, allocations: 35.98 kB / 424.4 MB, free: 16.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000822/0.5235, allocations: 99.86 kB / 424.5 MB, free: 16.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00027/0.5237, allocations: 120.3 kB / 424.6 MB, free: 16.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.442e-05/0.5238, allocations: 39.98 kB / 424.6 MB, free: 16.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001612/0.5254, allocations: 1.183 MB / 425.8 MB, free: 15.49 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5255, allocations: 4 kB / 425.8 MB, free: 15.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002001/0.5275, allocations: 0.5039 MB / 426.3 MB, free: 14.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 111 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 1,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004797/0.5323, allocations: 4.156 MB / 430.5 MB, free: 10.72 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003418/0.5357, allocations: 2.471 MB / 432.9 MB, free: 8.199 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.5357, allocations: 8.125 kB / 432.9 MB, free: 8.191 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002175/0.5379, allocations: 1.618 MB / 434.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002416/0.5404, allocations: 450.4 kB / 435 MB, free: 6.086 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02868/0.5691, allocations: 15.66 MB / 450.7 MB, free: 5.465 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00198/0.5711, allocations: 1.993 MB / 452.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001645/0.5728, allocations: 439.5 kB / 453.1 MB, free: 3.004 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/0.5742, allocations: 0.921 MB / 454 MB, free: 2.082 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5742, allocations: 0 / 454 MB, free: 2.082 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08621/0.6604, allocations: 44.44 MB / 498.4 MB, free: 5.582 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/0.6607, allocations: 236.7 kB / 498.7 MB, free: 5.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.072/3.733, allocations: 0 / 498.7 MB, free: 5.34 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.mat does not exist to compare? outputFormat=mat