Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",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.001464/0.001464, allocations: 175.3 kB / 13.63 MB, free: 1.684 MB / 13.93 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: 221.3 MB / 235.5 MB, free: 2.914 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.0009375/0.0009373, allocations: 91.55 kB / 286.5 MB, free: 192 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.027e-05/4.037e-05, allocations: 4 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09623/0.0963, allocations: 50.42 MB / 394.4 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.356/0.4524, allocations: 110.2 MB / 0.4927 GB, free: 9.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.4527, allocations: 85.73 kB / 0.4928 GB, free: 9.148 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1426/0.5952, allocations: 53.21 MB / 0.5447 GB, free: 3.621 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5953, allocations: 0 / 0.5447 GB, free: 3.621 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002237/0.5955, allocations: 71.92 kB / 0.5448 GB, free: 3.551 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.00668/0.6022, allocations: 2.601 MB / 0.5474 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.6023, allocations: 12.03 kB / 0.5474 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008097/0.6031, allocations: 366.8 kB / 0.5477 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/0.6042, allocations: 352 kB / 0.5481 GB, free: 168 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2367/0.8409, allocations: 1.898 MB / 0.5499 GB, free: 98.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002615/0.8412, allocations: 190.9 kB / 0.5501 GB, free: 98.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/0.8422, allocations: 252.9 kB / 0.5503 GB, free: 98.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006418/0.8486, allocations: 3.186 MB / 0.5534 GB, free: 98.53 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.338e-05/0.8487, allocations: 7.906 kB / 0.5534 GB, free: 98.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002416/0.849, allocations: 105.9 kB / 0.5535 GB, free: 98.53 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001315/0.8491, allocations: 120.1 kB / 0.5537 GB, free: 98.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004754/0.8539, allocations: 2.52 MB / 0.5561 GB, free: 98.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01791/0.8718, allocations: 10.47 MB / 0.5663 GB, free: 95.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001925/0.8738, allocations: 1.426 MB / 0.5677 GB, free: 95.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.8749, allocations: 0.7522 MB / 0.5685 GB, free: 95.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003109/0.8753, allocations: 220 kB / 0.5687 GB, free: 95.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.8753, allocations: 49.88 kB / 0.5687 GB, free: 95.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=104): time 3.316e-06/0.8753, allocations: 0 / 0.5687 GB, free: 95.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.01367/0.889, allocations: 6.166 MB / 0.5748 GB, free: 93.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.8891, allocations: 72.7 kB / 0.5748 GB, free: 93.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/0.891, allocations: 1.528 MB / 0.5763 GB, free: 92.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.956e-05/0.8911, allocations: 51.81 kB / 0.5764 GB, free: 92.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005536/0.8917, allocations: 1.265 MB / 0.5776 GB, free: 91.79 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/0.8919, allocations: 467.1 kB / 0.578 GB, free: 91.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.76e-05/0.892, allocations: 35.81 kB / 0.5781 GB, free: 91.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.73e-05/0.8921, allocations: 376.1 kB / 0.5784 GB, free: 91.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009432/0.8931, allocations: 0.7764 MB / 0.5792 GB, free: 90.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.8942, allocations: 1.278 MB / 0.5804 GB, free: 89.89 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.8954, allocations: 1.011 MB / 0.5814 GB, free: 89.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/0.8954, allocations: 5.5 kB / 0.5814 GB, free: 89.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003251/0.8987, allocations: 2.489 MB / 0.5839 GB, free: 88.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.8987, allocations: 12.28 kB / 0.5839 GB, free: 88.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.8987, allocations: 14.62 kB / 0.5839 GB, free: 88.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000545/0.8993, allocations: 242.7 kB / 0.5841 GB, free: 88.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.9007, allocations: 444.8 kB / 0.5845 GB, free: 88.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.9025, allocations: 2.989 MB / 0.5875 GB, free: 85.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001398/0.9039, allocations: 132.8 kB / 0.5876 GB, free: 85.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/0.9041, allocations: 73.56 kB / 0.5877 GB, free: 85.83 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.9044, allocations: 210.7 kB / 0.5879 GB, free: 85.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/0.9048, allocations: 186.9 kB / 0.588 GB, free: 85.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003101/0.9079, allocations: 2.092 MB / 0.5901 GB, free: 84.72 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.9079, allocations: 13.5 kB / 0.5901 GB, free: 84.72 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.9079, allocations: 0 / 0.5901 GB, free: 84.72 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.9079, allocations: 11.59 kB / 0.5901 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007979/0.9159, allocations: 4.842 MB / 0.5948 GB, free: 82.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.916, allocations: 3.469 kB / 0.5948 GB, free: 82.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/0.9172, allocations: 295.2 kB / 0.5951 GB, free: 82.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005155/0.9177, allocations: 199.3 kB / 0.5953 GB, free: 82.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.9179, allocations: 33.58 kB / 0.5953 GB, free: 82.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001827/0.9197, allocations: 2.969 MB / 0.5982 GB, free: 79.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.9197, allocations: 0 / 0.5982 GB, free: 79.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004499/0.9242, allocations: 3.364 MB / 0.6015 GB, free: 78.31 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/0.9256, allocations: 445 kB / 0.602 GB, free: 78.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006041/0.9262, allocations: 30.62 kB / 0.602 GB, free: 78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/0.9276, allocations: 96.34 kB / 0.6021 GB, free: 77.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/0.9278, allocations: 91.67 kB / 0.6022 GB, free: 77.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.877e-05/0.928, allocations: 38.62 kB / 0.6022 GB, free: 77.96 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002317/0.9303, allocations: 1.168 MB / 0.6033 GB, free: 77.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9303, allocations: 0 / 0.6033 GB, free: 77.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002297/0.9326, allocations: 0.5268 MB / 0.6039 GB, free: 77.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005047/0.9377, allocations: 4.793 MB / 0.6085 GB, free: 74.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003482/0.9412, allocations: 2.372 MB / 0.6109 GB, free: 73.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.9412, allocations: 0 / 0.6109 GB, free: 73.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00174/0.943, allocations: 1.36 MB / 0.6122 GB, free: 72.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/0.9456, allocations: 458.6 kB / 0.6126 GB, free: 72.72 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009946/0.9556, allocations: 4.626 MB / 0.6171 GB, free: 70.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002063/0.9577, allocations: 2.068 MB / 0.6192 GB, free: 69.88 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00183/0.9596, allocations: 0.5161 MB / 0.6197 GB, free: 69.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/0.9609, allocations: 0.9857 MB / 0.6206 GB, free: 68.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.373e-06/0.961, allocations: 0 / 0.6206 GB, free: 68.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06794/1.029, allocations: 47.88 MB / 0.6674 GB, free: 29.54 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/1.029, allocations: 200.4 kB / 0.6676 GB, free: 29.31 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.215/4.244, allocations: 0 / 0.6676 GB, free: 29.31 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat