Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 88.16 kB / 16.31 MB, free: 5.547 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.001101/0.001101, allocations: 181.5 kB / 17.21 MB, free: 5.465 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.366/1.366, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003165/0.0003165, allocations: 8 kB / 300.9 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1198, allocations: 50.43 MB / 351.4 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01011/0.1299, allocations: 10.1 MB / 361.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006217/0.1362, allocations: 3.335 MB / 364.8 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001648/0.1379, allocations: 63.69 kB / 364.9 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002078/0.14, allocations: 0.6796 MB / 365.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003215/0.1432, allocations: 0.8118 MB / 366.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009413/0.1441, allocations: 267.6 kB / 366.6 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004158/0.1483, allocations: 3.935 MB / 370.5 MB, free: 432 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.206/0.3543, allocations: 1.94 MB / 372.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002758/0.3571, allocations: 1.228 MB / 373.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003127/0.3602, allocations: 1.62 MB / 375.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000518/0.3607, allocations: 182.8 kB / 375.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009765/0.3617, allocations: 244.8 kB / 375.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00108/0.3628, allocations: 0.9156 MB / 376.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009428/0.3638, allocations: 0.6652 MB / 377.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005133/0.3689, allocations: 4.409 MB / 381.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3689, allocations: 0 / 381.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3689, allocations: 1.031 kB / 381.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001608/0.3691, allocations: 0 / 381.7 MB, free: 9.645 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.007969/0.3771, allocations: 3.26 MB / 385 MB, free: 7.742 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3771, allocations: 8.562 kB / 385 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008963/0.378, allocations: 413.6 kB / 385.4 MB, free: 7.617 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001204/0.3793, allocations: 391.9 kB / 385.8 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00351/0.3828, allocations: 1.92 MB / 387.7 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.383, allocations: 216 kB / 387.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004321/0.3834, allocations: 289 kB / 388.2 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006878/0.3903, allocations: 3.837 MB / 392 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.849e-05/0.3904, allocations: 8.391 kB / 392.1 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002689/0.3907, allocations: 120.7 kB / 392.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001604/0.3908, allocations: 125.1 kB / 392.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005425/0.3963, allocations: 3.232 MB / 395.5 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0185/0.4148, allocations: 11.97 MB / 407.5 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003041/0.4178, allocations: 3.651 MB / 411.1 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001896/0.4198, allocations: 1.23 MB / 412.4 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000239/0.42, allocations: 126.4 kB / 412.5 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.4201, allocations: 54.97 kB / 412.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of pre-optimization done (n=136): time 3.116e-06/0.4201, allocations: 0 / 412.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.01377/0.4339, allocations: 7.353 MB / 419.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.4339, allocations: 68.72 kB / 420 MB, free: 13.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003174/0.4371, allocations: 2.04 MB / 422 MB, free: 11.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001923/0.4373, allocations: 53.7 kB / 422.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001194/0.4385, allocations: 1.373 MB / 423.4 MB, free: 9.926 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000498/0.439, allocations: 0.5132 MB / 423.9 MB, free: 9.418 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.888e-05/0.4391, allocations: 32 kB / 424 MB, free: 9.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002111/0.4394, allocations: 389.8 kB / 424.4 MB, free: 9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001396/0.4408, allocations: 0.8685 MB / 425.2 MB, free: 8.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001579/0.4423, allocations: 1.357 MB / 426.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/0.4439, allocations: 1.097 MB / 427.7 MB, free: 5.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.4439, allocations: 4 kB / 427.7 MB, free: 5.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005464/0.4494, allocations: 3.254 MB / 430.9 MB, free: 2.285 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.308e-05/0.4495, allocations: 12.5 kB / 431 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.923e-05/0.4495, allocations: 20 kB / 431 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002232/0.4517, allocations: 0.8519 MB / 431.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.4529, allocations: 347.2 kB / 432.2 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01588/0.4688, allocations: 18.83 MB / 451 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.4709, allocations: 95.98 kB / 451.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001807/0.4711, allocations: 79.98 kB / 451.2 MB, free: 12.62 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.002/0.4731, allocations: 0.9305 MB / 452.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004616/0.4735, allocations: 213.4 kB / 452.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004285/0.4778, allocations: 2.627 MB / 454.9 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.4779, allocations: 16 kB / 454.9 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.4779, allocations: 4 kB / 454.9 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.66e-05/0.4779, allocations: 15.97 kB / 455 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009644/0.4875, allocations: 5.895 MB / 460.9 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.4876, allocations: 4 kB / 460.9 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007431/0.4884, allocations: 195.7 kB / 461.1 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001793/0.4902, allocations: 0.7313 MB / 461.8 MB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.419e-05/0.4903, allocations: 39.94 kB / 461.8 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01406/0.5043, allocations: 16.72 MB / 478.5 MB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.5044, allocations: 14.16 kB / 478.6 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005834/0.5102, allocations: 3.785 MB / 482.3 MB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001579/0.5118, allocations: 482.5 kB / 482.8 MB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005099/0.5123, allocations: 36 kB / 482.8 MB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.5135, allocations: 123.8 kB / 483 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003571/0.5139, allocations: 137.1 kB / 483.1 MB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.633e-05/0.514, allocations: 43.98 kB / 483.1 MB, free: 10.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002273/0.5162, allocations: 1.388 MB / 484.5 MB, free: 9.516 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.523e-06/0.5162, allocations: 0 / 484.5 MB, free: 9.516 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002883/0.5191, allocations: 0.6584 MB / 485.2 MB, free: 8.859 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 (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.005907/0.525, allocations: 4.417 MB / 489.6 MB, free: 4.324 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004916/0.53, allocations: 3.441 MB / 493.1 MB, free: 0.7539 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.53, allocations: 0 / 493.1 MB, free: 0.7539 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002555/0.5326, allocations: 2.195 MB / 495.2 MB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004221/0.5368, allocations: 0.6423 MB / 495.9 MB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03266/0.5695, allocations: 18.03 MB / 0.5019 GB, free: 10.56 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002/0.5715, allocations: 2.293 MB / 0.5041 GB, free: 8.238 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001607/0.5731, allocations: 0.4948 MB / 0.5046 GB, free: 7.738 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/0.5744, allocations: 1.081 MB / 0.5056 GB, free: 6.656 MB / 430.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5744, allocations: 0 / 0.5056 GB, free: 6.656 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2888/0.8633, allocations: 57.13 MB / 0.5614 GB, free: 130.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/0.8635, allocations: 247.6 kB / 0.5617 GB, free: 130.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.221/4.084, allocations: 4 kB / 0.5617 GB, free: 130.4 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat does not exist to compare? outputFormat=mat