Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_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.00137/0.00137, allocations: 95.67 kB / 16.3 MB, free: 5.539 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.001622/0.001622, allocations: 180.5 kB / 17.2 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.2 MB / 241.1 MB, free: 14.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003778/0.000378, allocations: 8 kB / 300.8 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1333, allocations: 50.41 MB / 351.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01334/0.1467, allocations: 9.593 MB / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.1587, allocations: 3.807 MB / 364.6 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003357/0.1621, allocations: 51.75 kB / 364.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003195/0.1653, allocations: 0.6958 MB / 365.4 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005122/0.1705, allocations: 0.8529 MB / 366.2 MB, free: 4.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002202/0.1727, allocations: 339.5 kB / 366.6 MB, free: 4.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005648/0.1784, allocations: 2.219 MB / 368.8 MB, free: 2.094 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003967/0.1823, allocations: 1.833 MB / 370.6 MB, free: 232 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2233/0.4057, allocations: 1.067 MB / 371.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003238/0.409, allocations: 1.398 MB / 373.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007678/0.4098, allocations: 169.8 kB / 373.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001501/0.4113, allocations: 366.3 kB / 373.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001057/0.4123, allocations: 0.8252 MB / 374.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001272/0.4136, allocations: 0.624 MB / 375.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006107/0.4197, allocations: 4.244 MB / 379.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.4198, allocations: 1.219 kB / 379.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.4198, allocations: 0 / 379.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001901/0.42, allocations: 0 / 379.3 MB, free: 10.8 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.009754/0.4297, allocations: 3.182 MB / 382.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.4298, allocations: 9.031 kB / 382.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001897/0.4317, allocations: 386.5 kB / 382.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002244/0.434, allocations: 439 kB / 383.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005447/0.4394, allocations: 1.866 MB / 385.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003425/0.4398, allocations: 207 kB / 385.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00122/0.441, allocations: 272.9 kB / 385.6 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.4512, allocations: 3.496 MB / 389.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.469e-05/0.4513, allocations: 10.78 kB / 389.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002959/0.4516, allocations: 108.9 kB / 389.2 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001872/0.4518, allocations: 122.4 kB / 389.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006598/0.4584, allocations: 2.98 MB / 392.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01896/0.4774, allocations: 11.15 MB / 403.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003143/0.4806, allocations: 2.289 MB / 405.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003299/0.4809, allocations: 206.6 kB / 406 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.388e-05/0.481, allocations: 51.81 kB / 406 MB, free: 12.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 2.976e-06/0.481, allocations: 0 / 406 MB, free: 12.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=148): time 0.01772/0.4987, allocations: 7.775 MB / 413.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.4988, allocations: 68.72 kB / 413.9 MB, free: 4.086 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003584/0.5024, allocations: 1.949 MB / 415.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000287/0.5027, allocations: 49.7 kB / 415.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001057/0.5038, allocations: 1.307 MB / 417.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000565/0.5044, allocations: 0.5072 MB / 417.7 MB, free: 224 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.731e-05/0.5045, allocations: 38.58 kB / 417.7 MB, free: 188 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.5047, allocations: 377.9 kB / 418.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/0.5063, allocations: 0.8901 MB / 419 MB, free: 14.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001766/0.508, allocations: 1.375 MB / 420.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.5097, allocations: 1.096 MB / 421.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.415e-06/0.5097, allocations: 6.297 kB / 421.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005275/0.515, allocations: 2.974 MB / 424.4 MB, free: 9.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.5151, allocations: 8 kB / 424.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.688e-05/0.5151, allocations: 16 kB / 424.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.5162, allocations: 445.2 kB / 424.9 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.5179, allocations: 447.3 kB / 425.3 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006047/0.5239, allocations: 5.482 MB / 430.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002322/0.5263, allocations: 131.8 kB / 430.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002195/0.5265, allocations: 75.98 kB / 431 MB, free: 2.379 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (202): * Single equations (assignments): 197 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(3,100.0%) 16,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002012/0.5285, allocations: 0.8478 MB / 431.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006239/0.5292, allocations: 213.5 kB / 432.1 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004757/0.5339, allocations: 2.587 MB / 434.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.75e-05/0.534, allocations: 16 kB / 434.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.534, allocations: 11.98 kB / 434.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.534, allocations: 3.984 kB / 434.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.5443, allocations: 5.629 MB / 440.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.938e-06/0.5443, allocations: 4 kB / 440.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/0.5456, allocations: 300 kB / 440.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.5468, allocations: 489.2 kB / 441.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.547, allocations: 43.97 kB / 441.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006853/0.5538, allocations: 6.97 MB / 448.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.5539, allocations: 11.97 kB / 448.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006495/0.5604, allocations: 4.072 MB / 452.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001537/0.5619, allocations: 478.4 kB / 452.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003736/0.5623, allocations: 39.98 kB / 452.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.5635, allocations: 111.9 kB / 452.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002789/0.5638, allocations: 121 kB / 452.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.5639, allocations: 43.98 kB / 453 MB, free: 11.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002141/0.5661, allocations: 1.336 MB / 454.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5661, allocations: 3.938 kB / 454.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002351/0.5685, allocations: 0.582 MB / 454.9 MB, free: 9.699 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 16,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006608/0.5751, allocations: 5.539 MB / 460.4 MB, free: 4.016 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004492/0.5796, allocations: 2.603 MB / 463 MB, free: 1.375 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/0.5796, allocations: 4 kB / 463 MB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002543/0.5822, allocations: 1.599 MB / 464.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002678/0.5849, allocations: 456.6 kB / 465.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03984/0.6247, allocations: 27.23 MB / 492.3 MB, free: 2.828 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001908/0.6266, allocations: 2.185 MB / 494.5 MB, free: 0.6133 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001792/0.6285, allocations: 477 kB / 495 MB, free: 148 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001583/0.63, allocations: 1.062 MB / 496 MB, free: 15.11 MB / 414.1 MB Notification: Performance of SimCode: time 1.193e-06/0.6301, allocations: 3.938 kB / 496 MB, free: 15.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2828/0.9129, allocations: 49.43 MB / 0.5327 GB, free: 144.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/0.9131, allocations: 222.9 kB / 0.5329 GB, free: 144.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.188/4.101, allocations: 0 / 0.5329 GB, free: 144.2 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat