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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.002019/0.002019, allocations: 174.3 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.691/1.691, allocations: 221.5 MB / 230.3 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000907/0.0009067, allocations: 87.61 kB / 281.2 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.06e-05/2.06e-05, allocations: 4 kB / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 50.43 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3818/0.4882, allocations: 107 MB / 494.6 MB, free: 3.633 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.4885, allocations: 83.95 kB / 494.6 MB, free: 3.551 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1429/0.6314, allocations: 57.4 MB / 0.5391 GB, free: 9.738 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6315, allocations: 0 / 0.5391 GB, free: 9.738 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002196/0.6317, allocations: 87.81 kB / 0.5392 GB, free: 9.652 MB / 426.7 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.005892/0.6376, allocations: 2.896 MB / 0.542 GB, free: 6.695 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.6377, allocations: 12.02 kB / 0.542 GB, free: 6.684 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001234/0.6389, allocations: 411.5 kB / 0.5424 GB, free: 6.277 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004332/0.6432, allocations: 2.043 MB / 0.5444 GB, free: 4.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.6434, allocations: 92 kB / 0.5445 GB, free: 4.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006951/0.6441, allocations: 168 kB / 0.5447 GB, free: 3.926 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005399/0.6495, allocations: 2.827 MB / 0.5474 GB, free: 1.094 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2444/0.8939, allocations: 3.32 MB / 0.5507 GB, free: 98.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-05/0.8941, allocations: 9.062 kB / 0.5507 GB, free: 98.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002469/0.8943, allocations: 7.328 kB / 0.5507 GB, free: 98.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/0.8945, allocations: 115.6 kB / 0.5508 GB, free: 98.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02254/0.917, allocations: 11.21 MB / 0.5617 GB, free: 95.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003054/0.9201, allocations: 3.596 MB / 0.5652 GB, free: 93.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.9219, allocations: 1.088 MB / 0.5663 GB, free: 93.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003409/0.9223, allocations: 142.1 kB / 0.5664 GB, free: 93.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.9223, allocations: 48.22 kB / 0.5665 GB, free: 93.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=139): time 3.907e-06/0.9223, allocations: 0 / 0.5665 GB, free: 93.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=160): time 0.01157/0.9339, allocations: 5.599 MB / 0.572 GB, free: 92.44 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.934, allocations: 72.17 kB / 0.572 GB, free: 92.37 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002765/0.9368, allocations: 1.494 MB / 0.5735 GB, free: 92.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002467/0.9371, allocations: 30.08 kB / 0.5735 GB, free: 92.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009205/0.938, allocations: 1.366 MB / 0.5748 GB, free: 91.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004745/0.9385, allocations: 0.5177 MB / 0.5754 GB, free: 91.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.871e-05/0.9386, allocations: 0 / 0.5754 GB, free: 91.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.9387, allocations: 384.7 kB / 0.5757 GB, free: 90.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.9398, allocations: 0.846 MB / 0.5765 GB, free: 90.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/0.9412, allocations: 1.286 MB / 0.5778 GB, free: 90.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001264/0.9425, allocations: 1.078 MB / 0.5789 GB, free: 90.42 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.9425, allocations: 3.875 kB / 0.5789 GB, free: 90.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004849/0.9473, allocations: 3.155 MB / 0.5819 GB, free: 89.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/0.9474, allocations: 9.188 kB / 0.5819 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.612e-05/0.9474, allocations: 15.69 kB / 0.582 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002535/0.95, allocations: 1.015 MB / 0.583 GB, free: 89.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.9512, allocations: 335.6 kB / 0.5833 GB, free: 89.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01378/0.965, allocations: 18.45 MB / 0.6013 GB, free: 74.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.9671, allocations: 66.94 kB / 0.6014 GB, free: 74.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002719/0.9674, allocations: 70.69 kB / 0.6014 GB, free: 74.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * 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 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003884/0.9678, allocations: 154.6 kB / 0.6016 GB, free: 74.16 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003953/0.9718, allocations: 2.49 MB / 0.604 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007411/0.9725, allocations: 200.5 kB / 0.6042 GB, free: 73.15 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004158/0.9767, allocations: 2.635 MB / 0.6068 GB, free: 72.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.9767, allocations: 14.78 kB / 0.6068 GB, free: 72.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/0.9768, allocations: 13.84 kB / 0.6068 GB, free: 72.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.9768, allocations: 11.25 kB / 0.6068 GB, free: 72.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009755/0.9865, allocations: 5.464 MB / 0.6121 GB, free: 69.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.9866, allocations: 10.77 kB / 0.6121 GB, free: 69.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006976/0.9873, allocations: 188.8 kB / 0.6123 GB, free: 69.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002086/0.9894, allocations: 0.9015 MB / 0.6132 GB, free: 69.67 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.9895, allocations: 7.406 kB / 0.6132 GB, free: 69.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01204/1.002, allocations: 16.46 MB / 0.6293 GB, free: 56.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/1.002, allocations: 3.719 kB / 0.6293 GB, free: 56.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005348/1.007, allocations: 3.948 MB / 0.6331 GB, free: 54.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/1.008, allocations: 463.5 kB / 0.6336 GB, free: 54.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003077/1.009, allocations: 7.078 kB / 0.6336 GB, free: 54.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/1.01, allocations: 90.61 kB / 0.6337 GB, free: 54.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003462/1.01, allocations: 156 kB / 0.6338 GB, free: 54.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-05/1.01, allocations: 44.09 kB / 0.6339 GB, free: 54.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001541/1.012, allocations: 1.111 MB / 0.635 GB, free: 53.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.012, allocations: 0 / 0.635 GB, free: 53.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002875/1.014, allocations: 0.6283 MB / 0.6356 GB, free: 53.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(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,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005619/1.02, allocations: 5.37 MB / 0.6408 GB, free: 50.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004243/1.024, allocations: 3.345 MB / 0.6441 GB, free: 48.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/1.024, allocations: 0 / 0.6441 GB, free: 48.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002235/1.027, allocations: 2.138 MB / 0.6462 GB, free: 46.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/1.03, allocations: 0.5173 MB / 0.6467 GB, free: 46.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/1.04, allocations: 5.219 MB / 0.6518 GB, free: 41.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/1.042, allocations: 2.356 MB / 0.6541 GB, free: 39.86 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001769/1.044, allocations: 460.5 kB / 0.6545 GB, free: 39.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/1.045, allocations: 1.077 MB / 0.6556 GB, free: 38.55 MB / 426.7 MB Notification: Performance of SimCode: time 1.052e-06/1.045, allocations: 0 / 0.6556 GB, free: 38.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0895/1.135, allocations: 54.58 MB / 0.7089 GB, free: 4.895 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/1.135, allocations: 174 kB / 0.709 GB, free: 4.703 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.462/4.597, allocations: 0 / 0.709 GB, free: 4.703 MB / 442.7 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