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.0007896/0.0007935, allocations: 90.3 kB / 16.31 MB, free: 5.617 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.0008732/0.0008734, allocations: 180.4 kB / 17.21 MB, free: 5.535 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.393/1.393, allocations: 223.2 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002408/0.0002409, allocations: 4 kB / 300.9 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09733/0.09758, allocations: 50.42 MB / 351.3 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01273/0.1104, allocations: 10.45 MB / 361.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007977/0.1184, allocations: 3.692 MB / 365.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002117/0.1206, allocations: 59.75 kB / 365.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002128/0.1227, allocations: 0.6915 MB / 366.2 MB, free: 4.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002881/0.1256, allocations: 0.835 MB / 367.1 MB, free: 4.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.1268, allocations: 347.5 kB / 367.4 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004505/0.1313, allocations: 3.491 MB / 370.9 MB, free: 284 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2098/0.3412, allocations: 1.827 MB / 372.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002315/0.3435, allocations: 1.151 MB / 373.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00271/0.3462, allocations: 1.574 MB / 375.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005279/0.3468, allocations: 170.8 kB / 375.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001084/0.3479, allocations: 367.8 kB / 376 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009373/0.3488, allocations: 0.8605 MB / 376.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008386/0.3497, allocations: 0.6228 MB / 377.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004508/0.3542, allocations: 4.269 MB / 381.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3542, allocations: 0 / 381.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.3542, allocations: 5.312 kB / 381.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001359/0.3544, allocations: 2.297 kB / 381.7 MB, free: 9.797 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.007176/0.3616, allocations: 3.19 MB / 384.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.3616, allocations: 12.61 kB / 384.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009118/0.3625, allocations: 386.1 kB / 385.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.3641, allocations: 438.5 kB / 385.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004572/0.3687, allocations: 1.843 MB / 387.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.369, allocations: 219.2 kB / 387.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005932/0.3696, allocations: 267 kB / 388.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006716/0.3763, allocations: 3.513 MB / 391.6 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.016e-05/0.3764, allocations: 12.53 kB / 391.6 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002532/0.3767, allocations: 113 kB / 391.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001612/0.3768, allocations: 126.1 kB / 391.8 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005254/0.3821, allocations: 2.982 MB / 394.8 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01711/0.3992, allocations: 11.16 MB / 406 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002881/0.4021, allocations: 2.292 MB / 408.3 MB, free: 9.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00202/0.4042, allocations: 1.209 MB / 409.5 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003336/0.4045, allocations: 211.4 kB / 409.7 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.4046, allocations: 43.88 kB / 409.7 MB, free: 8.316 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 4.038e-06/0.4046, allocations: 0 / 409.7 MB, free: 8.316 MB / 318.1 MB Notification: Performance of matching and sorting (n=148): time 0.01622/0.4208, allocations: 7.635 MB / 417.4 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/0.4209, allocations: 68.72 kB / 417.4 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003161/0.4241, allocations: 1.969 MB / 419.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002687/0.4244, allocations: 49.7 kB / 419.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009258/0.4253, allocations: 1.311 MB / 420.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005222/0.4258, allocations: 0.5073 MB / 421.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.426, allocations: 32 kB / 421.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000212/0.4262, allocations: 377.9 kB / 421.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001525/0.4277, allocations: 0.8979 MB / 422.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001723/0.4294, allocations: 1.382 MB / 423.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001726/0.4312, allocations: 1.101 MB / 425 MB, free: 8.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.128e-06/0.4312, allocations: 4 kB / 425 MB, free: 8.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005262/0.4365, allocations: 2.994 MB / 428 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.4365, allocations: 8 kB / 428 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.705e-05/0.4366, allocations: 16 kB / 428.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.4377, allocations: 468.5 kB / 428.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.4393, allocations: 439.9 kB / 428.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006221/0.4455, allocations: 5.586 MB / 434.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002177/0.4477, allocations: 131.8 kB / 434.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002093/0.448, allocations: 72 kB / 434.7 MB, free: 14.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (199): * Single equations (assignments): 194 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001989/0.4499, allocations: 0.8579 MB / 435.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006052/0.4506, allocations: 209.4 kB / 435.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004687/0.4553, allocations: 2.615 MB / 438.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.691e-05/0.4553, allocations: 16 kB / 438.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.4553, allocations: 4 kB / 438.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.968e-05/0.4554, allocations: 11.97 kB / 438.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009839/0.4652, allocations: 5.667 MB / 444.1 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.4653, allocations: 7.953 kB / 444.1 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/0.4665, allocations: 296 kB / 444.4 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001317/0.4678, allocations: 498 kB / 444.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.4679, allocations: 39.98 kB / 444.9 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007126/0.4751, allocations: 7.045 MB / 452 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/0.4751, allocations: 8.125 kB / 452 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006449/0.4815, allocations: 3.873 MB / 455.9 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/0.4829, allocations: 478.4 kB / 456.3 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006488/0.4836, allocations: 47.88 kB / 456.4 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/0.485, allocations: 107.9 kB / 456.5 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003011/0.4854, allocations: 117.1 kB / 456.6 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.4855, allocations: 53.98 kB / 456.6 MB, free: 8.242 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002591/0.4881, allocations: 1.34 MB / 458 MB, free: 6.879 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4881, allocations: 0 / 458 MB, free: 6.879 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002935/0.491, allocations: 0.5859 MB / 458.6 MB, free: 6.293 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 (125): * Single equations (assignments): 120 * 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%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006989/0.498, allocations: 4.509 MB / 463.1 MB, free: 1.691 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00499/0.503, allocations: 2.623 MB / 465.7 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.5031, allocations: 0 / 465.7 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002838/0.5059, allocations: 1.623 MB / 467.3 MB, free: 13.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0039/0.5098, allocations: 483 kB / 467.8 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03785/0.5477, allocations: 17.66 MB / 485.5 MB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002802/0.5506, allocations: 2.132 MB / 487.6 MB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002071/0.5527, allocations: 468.9 kB / 488 MB, free: 7.453 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001734/0.5544, allocations: 1.062 MB / 489.1 MB, free: 6.391 MB / 398.1 MB Notification: Performance of SimCode: time 9.61e-07/0.5544, allocations: 0 / 489.1 MB, free: 6.391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0944/0.6488, allocations: 49.48 MB / 0.526 GB, free: 5.453 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/0.6492, allocations: 230.7 kB / 0.5262 GB, free: 5.211 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.108/3.757, allocations: 3.375 kB / 0.5262 GB, free: 5.211 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