Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009497/0.0009497, allocations: 92.72 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002646/0.0002646, allocations: 8 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1237, allocations: 51.49 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01137/0.1352, allocations: 9.245 MB / 367.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007703/0.1429, allocations: 3.504 MB / 370.9 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002206/0.1452, allocations: 55.69 kB / 371 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00207/0.1472, allocations: 0.7114 MB / 371.7 MB, free: 200 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2221/0.3694, allocations: 0.8191 MB / 372.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001269/0.3707, allocations: 283.7 kB / 372.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005685/0.3764, allocations: 2.388 MB / 375.2 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003346/0.3798, allocations: 1.944 MB / 377.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003328/0.3831, allocations: 1.141 MB / 378.3 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00392/0.3871, allocations: 1.375 MB / 379.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007562/0.3878, allocations: 179.2 kB / 379.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001646/0.3895, allocations: 248.5 kB / 380.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001193/0.3907, allocations: 0.8518 MB / 380.9 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001943/0.3926, allocations: 0.6755 MB / 381.6 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006312/0.399, allocations: 4.387 MB / 386 MB, free: 7.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.399, allocations: 0 / 386 MB, free: 7.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.399, allocations: 0 / 386 MB, free: 7.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000206/0.3992, allocations: 1.219 kB / 386 MB, free: 7.801 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.008746/0.408, allocations: 3.253 MB / 389.2 MB, free: 5.898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.408, allocations: 9.562 kB / 389.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001342/0.4094, allocations: 410.9 kB / 389.7 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001455/0.4108, allocations: 388.9 kB / 390 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004516/0.4154, allocations: 1.95 MB / 392 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.4156, allocations: 214.4 kB / 392.2 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000619/0.4162, allocations: 289.9 kB / 392.5 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007357/0.4236, allocations: 3.811 MB / 396.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.372e-05/0.4237, allocations: 1.188 kB / 396.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002613/0.424, allocations: 125.3 kB / 396.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.4241, allocations: 127 kB / 396.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005496/0.4296, allocations: 3.232 MB / 399.8 MB, free: 1.812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02385/0.4535, allocations: 11.95 MB / 411.7 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003159/0.4567, allocations: 3.646 MB / 415.4 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002736/0.457, allocations: 126.1 kB / 415.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/0.457, allocations: 55.83 kB / 415.5 MB, free: 1.457 MB / 318.1 MB Notification: Performance of pre-optimization done (n=136): time 3.817e-06/0.457, allocations: 0 / 415.5 MB, free: 1.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.01496/0.472, allocations: 7.465 MB / 423 MB, free: 9.727 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.4721, allocations: 68.72 kB / 423.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003423/0.4755, allocations: 2.029 MB / 425.1 MB, free: 7.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003065/0.4758, allocations: 53.7 kB / 425.2 MB, free: 7.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009727/0.4768, allocations: 1.373 MB / 426.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005628/0.4774, allocations: 0.5071 MB / 427 MB, free: 5.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.754e-05/0.4775, allocations: 36 kB / 427.1 MB, free: 5.602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.4777, allocations: 385.8 kB / 427.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.4791, allocations: 0.8705 MB / 428.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/0.4807, allocations: 1.356 MB / 429.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001542/0.4822, allocations: 1.095 MB / 430.8 MB, free: 1.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.4822, allocations: 4 kB / 430.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005433/0.4877, allocations: 3.259 MB / 434 MB, free: 14.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.695e-05/0.4878, allocations: 12 kB / 434 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.972e-05/0.4878, allocations: 12.5 kB / 434.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002295/0.4901, allocations: 0.8391 MB / 434.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.4915, allocations: 355.4 kB / 435.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01608/0.5076, allocations: 18.92 MB / 454.2 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002342/0.5099, allocations: 103.8 kB / 454.3 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/0.5102, allocations: 79.98 kB / 454.3 MB, free: 8.562 MB / 366.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: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 186 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002319/0.5125, allocations: 0.9379 MB / 455.3 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006111/0.5131, allocations: 217.4 kB / 455.5 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004211/0.5173, allocations: 2.618 MB / 458.1 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.494e-05/0.5174, allocations: 18.19 kB / 458.1 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.5174, allocations: 4 kB / 458.1 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.5174, allocations: 7.969 kB / 458.1 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.5278, allocations: 5.876 MB / 464 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.5278, allocations: 8 kB / 464 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007908/0.5286, allocations: 199.7 kB / 464.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/0.5304, allocations: 0.7199 MB / 464.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.174e-05/0.5305, allocations: 39.94 kB / 465 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01426/0.5448, allocations: 16.8 MB / 481.8 MB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.764e-06/0.5448, allocations: 12.75 kB / 481.8 MB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006322/0.5511, allocations: 4.042 MB / 485.8 MB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/0.5529, allocations: 490.2 kB / 486.3 MB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003081/0.5532, allocations: 32 kB / 486.3 MB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.5543, allocations: 111.9 kB / 486.4 MB, free: 6.633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003718/0.5547, allocations: 145 kB / 486.6 MB, free: 6.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.726e-05/0.5548, allocations: 47.98 kB / 486.6 MB, free: 6.441 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002588/0.5574, allocations: 1.373 MB / 488 MB, free: 5.047 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.753e-06/0.5574, allocations: 3.938 kB / 488 MB, free: 5.043 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00304/0.5604, allocations: 0.6585 MB / 488.7 MB, free: 4.387 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(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.006253/0.5667, allocations: 5.608 MB / 494.3 MB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005048/0.5718, allocations: 3.435 MB / 497.7 MB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.836e-06/0.5718, allocations: 6.406 kB / 497.7 MB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002617/0.5744, allocations: 2.194 MB / 499.9 MB, free: 8.707 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003344/0.5778, allocations: 0.6283 MB / 0.4888 GB, free: 8.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/0.5973, allocations: 20.01 MB / 0.5083 GB, free: 2.887 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002229/0.5996, allocations: 2.34 MB / 0.5106 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001999/0.6016, allocations: 0.4988 MB / 0.5111 GB, free: 16 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001652/0.6033, allocations: 1.098 MB / 0.5122 GB, free: 14.96 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6033, allocations: 4 kB / 0.5122 GB, free: 14.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3101/0.9134, allocations: 56.07 MB / 0.567 GB, free: 121 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002062/0.9136, allocations: 237.2 kB / 0.5672 GB, free: 120.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.485/4.399, allocations: 0 / 0.5672 GB, free: 120.7 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat does not exist to compare? outputFormat=mat