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.000839/0.0008391, allocations: 102.5 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008554/0.0008556, allocations: 188.8 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002446/0.0002446, allocations: 8 kB / 306.8 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1145, allocations: 51.5 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01001/0.1245, allocations: 10.14 MB / 368.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007307/0.1319, allocations: 3.386 MB / 371.8 MB, free: 156 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001851/0.1338, allocations: 63.69 kB / 371.9 MB, free: 92 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2477/0.3814, allocations: 0.6716 MB / 372.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003872/0.3854, allocations: 0.8186 MB / 373.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.3865, allocations: 275.6 kB / 373.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006599/0.3931, allocations: 3.926 MB / 377.6 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003333/0.3964, allocations: 1.948 MB / 379.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00363/0.4001, allocations: 1.237 MB / 380.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004417/0.4045, allocations: 1.617 MB / 382.4 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007499/0.4053, allocations: 182.5 kB / 382.6 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001595/0.4069, allocations: 249.2 kB / 382.8 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001373/0.4083, allocations: 0.915 MB / 383.7 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001225/0.4095, allocations: 0.6664 MB / 384.4 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005381/0.4149, allocations: 4.417 MB / 388.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4149, allocations: 1.156 kB / 388.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.4149, allocations: 0 / 388.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001057/0.415, allocations: 1.312 kB / 388.8 MB, free: 6.039 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.007666/0.4227, allocations: 3.262 MB / 392.1 MB, free: 4.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.4228, allocations: 9.031 kB / 392.1 MB, free: 4.137 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000793/0.4236, allocations: 408.2 kB / 392.5 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001222/0.4248, allocations: 395.4 kB / 392.9 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003452/0.4283, allocations: 1.936 MB / 394.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.4285, allocations: 213.1 kB / 395 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004559/0.4289, allocations: 281.5 kB / 395.3 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00646/0.4354, allocations: 3.838 MB / 399.1 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-05/0.4355, allocations: 10.88 kB / 399.1 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002452/0.4357, allocations: 113.4 kB / 399.2 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.4358, allocations: 126.1 kB / 399.4 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005555/0.4414, allocations: 3.237 MB / 402.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02213/0.4636, allocations: 11.97 MB / 414.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003903/0.4675, allocations: 3.658 MB / 418.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00214/0.4697, allocations: 1.244 MB / 419.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003033/0.47, allocations: 126.4 kB / 419.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.986e-05/0.4701, allocations: 51.83 kB / 419.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.627e-06/0.4701, allocations: 0 / 419.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01562/0.4857, allocations: 7.347 MB / 427 MB, free: 4.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.842e-05/0.4858, allocations: 64.72 kB / 427.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004036/0.4899, allocations: 2.06 MB / 429.1 MB, free: 2.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002555/0.4902, allocations: 49.7 kB / 429.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.4915, allocations: 1.376 MB / 430.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005685/0.492, allocations: 0.5027 MB / 431 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.4922, allocations: 36 kB / 431.1 MB, free: 488 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002201/0.4924, allocations: 377.9 kB / 431.4 MB, free: 104 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.4939, allocations: 0.8666 MB / 432.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001732/0.4956, allocations: 1.355 MB / 433.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001645/0.4973, allocations: 1.099 MB / 434.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.4973, allocations: 8 kB / 434.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006056/0.5034, allocations: 3.259 MB / 438 MB, free: 9.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.777e-05/0.5034, allocations: 18.41 kB / 438.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/0.5034, allocations: 12 kB / 438.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002373/0.5058, allocations: 0.8539 MB / 438.9 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.5071, allocations: 343.4 kB / 439.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01852/0.5256, allocations: 18.82 MB / 458.1 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/0.5281, allocations: 107.8 kB / 458.2 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002161/0.5283, allocations: 72 kB / 458.3 MB, free: 3.555 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (194): * Single equations (assignments): 183 * 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%) 6,(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.002444/0.5307, allocations: 0.9344 MB / 459.2 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006487/0.5314, allocations: 217.3 kB / 459.4 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004547/0.536, allocations: 2.625 MB / 462 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.536, allocations: 19.95 kB / 462 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/0.536, allocations: 8 kB / 462 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.536, allocations: 19.3 kB / 462.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/0.5467, allocations: 5.896 MB / 468 MB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.5468, allocations: 4 kB / 468 MB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008309/0.5476, allocations: 199.7 kB / 468.2 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002226/0.5498, allocations: 0.7361 MB / 468.9 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001454/0.55, allocations: 32 kB / 468.9 MB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0151/0.5651, allocations: 16.71 MB / 485.6 MB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.326e-06/0.5652, allocations: 11.89 kB / 485.7 MB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006282/0.5715, allocations: 3.797 MB / 489.5 MB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001535/0.573, allocations: 478.3 kB / 489.9 MB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003592/0.5734, allocations: 32 kB / 489.9 MB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.5745, allocations: 119.3 kB / 490.1 MB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003615/0.5748, allocations: 141 kB / 490.2 MB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.575, allocations: 47.98 kB / 490.3 MB, free: 1.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002455/0.5774, allocations: 1.392 MB / 491.6 MB, free: 452 kB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5774, allocations: 3.938 kB / 491.6 MB, free: 448 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.003761/0.5812, allocations: 0.6602 MB / 492.3 MB, free: 15.77 MB / 414.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 (118): * Single equations (assignments): 108 * 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%) 6,(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.006423/0.5876, allocations: 4.406 MB / 496.7 MB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005189/0.5928, allocations: 3.434 MB / 0.4884 GB, free: 7.676 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.5929, allocations: 0 / 0.4884 GB, free: 7.676 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002824/0.5957, allocations: 2.204 MB / 0.4906 GB, free: 5.348 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003761/0.5995, allocations: 0.6699 MB / 0.4912 GB, free: 4.688 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03581/0.6353, allocations: 18.04 MB / 0.5088 GB, free: 1.441 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002178/0.6376, allocations: 2.288 MB / 0.5111 GB, free: 15.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001829/0.6394, allocations: 0.4932 MB / 0.5116 GB, free: 14.63 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001474/0.6409, allocations: 1.085 MB / 0.5126 GB, free: 13.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6409, allocations: 4 kB / 0.5126 GB, free: 13.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2928/0.9337, allocations: 57.27 MB / 0.5686 GB, free: 119.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001367/0.9338, allocations: 238.7 kB / 0.5688 GB, free: 118.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.62/4.554, allocations: 0 / 0.5688 GB, free: 118.9 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