Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009613/0.0009613, allocations: 99.41 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.001021, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003834, allocations: 8 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1287, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.009642/0.1384, allocations: 8.312 MB / 366.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006192/0.1447, allocations: 3.169 MB / 369.7 MB, free: 2.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001146/0.1459, allocations: 47.75 kB / 369.7 MB, free: 2.219 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.1473, allocations: 0.5869 MB / 370.3 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002043/0.1494, allocations: 0.7165 MB / 371 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007087/0.1501, allocations: 251.7 kB / 371.3 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1835/0.3336, allocations: 1.912 MB / 373.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002351/0.336, allocations: 1.652 MB / 374.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001981/0.338, allocations: 0.9266 MB / 375.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002076/0.3401, allocations: 1.203 MB / 377 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003892/0.3405, allocations: 144.6 kB / 377.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007987/0.3413, allocations: 228.7 kB / 377.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007605/0.3421, allocations: 0.7292 MB / 378.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006215/0.3427, allocations: 0.5516 MB / 378.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004068/0.3468, allocations: 3.711 MB / 382.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.3468, allocations: 0 / 382.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3468, allocations: 0 / 382.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001126/0.3469, allocations: 0 / 382.3 MB, free: 9.176 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.006795/0.3537, allocations: 2.807 MB / 385.1 MB, free: 7.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.3538, allocations: 8.719 kB / 385.2 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001266/0.3551, allocations: 337 kB / 385.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001852/0.357, allocations: 367.7 kB / 385.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003968/0.3609, allocations: 1.663 MB / 387.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002298/0.3612, allocations: 186.5 kB / 387.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004443/0.3616, allocations: 230 kB / 387.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006307/0.368, allocations: 3.115 MB / 391 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.596e-05/0.3681, allocations: 7.844 kB / 391 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002186/0.3683, allocations: 92.5 kB / 391.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.3684, allocations: 108 kB / 391.2 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004819/0.3732, allocations: 2.707 MB / 393.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.015/0.3883, allocations: 9.739 MB / 403.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002773/0.3911, allocations: 2.174 MB / 405.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003602/0.3915, allocations: 213.6 kB / 406.1 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.3915, allocations: 43.56 kB / 406.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.689e-06/0.3915, allocations: 1.031 kB / 406.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.01557/0.4071, allocations: 6.938 MB / 413 MB, free: 3.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.4072, allocations: 64.72 kB / 413.1 MB, free: 3.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/0.4102, allocations: 1.695 MB / 414.8 MB, free: 1.773 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002218/0.4105, allocations: 49.7 kB / 414.8 MB, free: 1.719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.4115, allocations: 1.153 MB / 416 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004624/0.412, allocations: 460 kB / 416.4 MB, free: 112 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.325e-05/0.4121, allocations: 32 kB / 416.5 MB, free: 80 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.4123, allocations: 365.9 kB / 416.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/0.4137, allocations: 0.8081 MB / 417.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.4153, allocations: 1.204 MB / 418.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.4169, allocations: 0.9836 MB / 419.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.4169, allocations: 4 kB / 419.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004598/0.4215, allocations: 2.658 MB / 422.5 MB, free: 9.844 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.4216, allocations: 12 kB / 422.5 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.267e-05/0.4216, allocations: 12.34 kB / 422.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.4227, allocations: 399.7 kB / 422.9 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.424, allocations: 371.4 kB / 423.3 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006605/0.4307, allocations: 6.378 MB / 429.6 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/0.4325, allocations: 111.8 kB / 429.8 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001594/0.4327, allocations: 60 kB / 429.8 MB, free: 2.113 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * 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 (177): * Single equations (assignments): 173 * 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%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001725/0.4344, allocations: 0.8019 MB / 430.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003898/0.4348, allocations: 189.7 kB / 430.8 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004057/0.4388, allocations: 2.387 MB / 433.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/0.4389, allocations: 20 kB / 433.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.4389, allocations: 7.938 kB / 433.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.4389, allocations: 7.969 kB / 433.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008935/0.4479, allocations: 5.086 MB / 438.3 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.4479, allocations: 0 / 438.3 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.4489, allocations: 252 kB / 438.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.45, allocations: 431.1 kB / 439 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.787e-05/0.4502, allocations: 31.98 kB / 439 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007568/0.4577, allocations: 7.878 MB / 446.9 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4578, allocations: 4 kB / 446.9 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005922/0.4637, allocations: 3.742 MB / 450.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/0.4651, allocations: 434.7 kB / 451.1 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003072/0.4654, allocations: 32.11 kB / 451.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009492/0.4663, allocations: 103.9 kB / 451.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002913/0.4666, allocations: 119.1 kB / 451.3 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.046e-05/0.4667, allocations: 43.98 kB / 451.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001872/0.4686, allocations: 1.152 MB / 452.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4686, allocations: 0 / 452.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002046/0.4707, allocations: 0.504 MB / 453 MB, free: 10.05 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (117): * Single equations (assignments): 113 * 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%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006226/0.4769, allocations: 5.203 MB / 458.2 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004033/0.481, allocations: 2.48 MB / 460.7 MB, free: 2.168 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.481, allocations: 0 / 460.7 MB, free: 2.168 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00258/0.4836, allocations: 1.601 MB / 462.3 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002405/0.486, allocations: 437.6 kB / 462.7 MB, free: 96 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0342/0.5202, allocations: 23.37 MB / 486.1 MB, free: 7.715 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00204/0.5223, allocations: 2.044 MB / 488.1 MB, free: 5.633 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001877/0.5242, allocations: 451.5 kB / 488.6 MB, free: 5.188 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001528/0.5258, allocations: 0.9211 MB / 489.5 MB, free: 4.266 MB / 398.1 MB Notification: Performance of SimCode: time 1.483e-06/0.5258, allocations: 0 / 489.5 MB, free: 4.266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08644/0.6122, allocations: 44.19 MB / 0.5212 GB, free: 8.527 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/0.6125, allocations: 220.5 kB / 0.5214 GB, free: 8.289 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.258/3.87, allocations: 3.938 kB / 0.5214 GB, free: 8.285 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat does not exist to compare? outputFormat=mat