Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001753/0.001753, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002353/0.002353, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 258.3 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_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_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 64.56 kB / 378.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2543, allocations: 53.37 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01377/0.268, allocations: 11.05 MB / 443 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007776/0.2758, allocations: 3.7 MB / 446.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001891/0.2777, allocations: 83.44 kB / 446.8 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002546/0.2802, allocations: 0.8814 MB / 447.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003334/0.2836, allocations: 0.9165 MB / 448.6 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.285, allocations: 479.1 kB / 449 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004248/0.2892, allocations: 2.95 MB / 452 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002552/0.2918, allocations: 1.564 MB / 453.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002538/0.2943, allocations: 1.421 MB / 455 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00325/0.2976, allocations: 1.806 MB / 456.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008753/0.2984, allocations: 372 kB / 457.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.2997, allocations: 479.9 kB / 457.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001218/0.3009, allocations: 1.099 MB / 458.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002314/0.3032, allocations: 1.676 MB / 460.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006666/0.3099, allocations: 4.905 MB / 465.3 MB, free: 5.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.779e-06/0.3099, allocations: 4 kB / 465.3 MB, free: 5.336 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3099, allocations: 3.938 kB / 465.3 MB, free: 5.332 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001509/0.31, allocations: 4 kB / 465.3 MB, free: 5.328 MB / 366.1 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.008118/0.3181, allocations: 3.402 MB / 468.7 MB, free: 1.875 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.3182, allocations: 8.031 kB / 468.7 MB, free: 1.867 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000545/0.3187, allocations: 367 kB / 469.1 MB, free: 1.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009754/0.3197, allocations: 362.8 kB / 469.4 MB, free: 1.145 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003596/0.3233, allocations: 1.752 MB / 471.2 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000175/0.3235, allocations: 193.2 kB / 471.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004854/0.324, allocations: 251.9 kB / 471.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006188/0.3302, allocations: 3.283 MB / 474.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.656e-05/0.3302, allocations: 4 kB / 474.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002294/0.3304, allocations: 100 kB / 475 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001388/0.3306, allocations: 124.9 kB / 475.1 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005143/0.3357, allocations: 2.752 MB / 477.9 MB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01744/0.3532, allocations: 10.22 MB / 488.1 MB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/0.355, allocations: 1.07 MB / 489.2 MB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.3562, allocations: 0.7121 MB / 489.9 MB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002361/0.3564, allocations: 48.94 kB / 489.9 MB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.3565, allocations: 43.56 kB / 490 MB, free: 12.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.706e-06/0.3565, allocations: 4 kB / 490 MB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01579/0.3723, allocations: 6.64 MB / 496.6 MB, free: 5.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.3723, allocations: 64.41 kB / 496.7 MB, free: 5.316 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003265/0.3756, allocations: 1.794 MB / 498.5 MB, free: 3.523 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001682/0.3758, allocations: 45.7 kB / 498.5 MB, free: 3.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001078/0.3768, allocations: 1.314 MB / 499.8 MB, free: 2.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004909/0.3773, allocations: 448.2 kB / 0.4885 GB, free: 1.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005527/0.3779, allocations: 295.5 kB / 0.4888 GB, free: 1.406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.378, allocations: 305.1 kB / 0.4891 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.3793, allocations: 0.7769 MB / 0.4899 GB, free: 336 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/0.3811, allocations: 1.292 MB / 0.4911 GB, free: 14.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003306/0.3844, allocations: 2.214 MB / 0.4933 GB, free: 12.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.919e-05/0.3845, allocations: 4 kB / 0.4933 GB, free: 12.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004764/0.3892, allocations: 2.483 MB / 0.4957 GB, free: 9.859 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.3893, allocations: 15.94 kB / 0.4957 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.994e-05/0.3893, allocations: 24.06 kB / 0.4958 GB, free: 9.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006763/0.39, allocations: 235.3 kB / 0.496 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001519/0.3915, allocations: 419.3 kB / 0.4964 GB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002996/0.3945, allocations: 3.031 MB / 0.4993 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/0.3961, allocations: 131.8 kB / 0.4995 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002253/0.3964, allocations: 71.94 kB / 0.4995 GB, free: 5.707 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00172/0.3981, allocations: 0.8227 MB / 0.5003 GB, free: 4.875 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005868/0.3987, allocations: 194.7 kB / 0.5005 GB, free: 4.684 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003842/0.4025, allocations: 2.039 MB / 0.5025 GB, free: 2.621 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.4025, allocations: 12 kB / 0.5025 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.4025, allocations: 4 kB / 0.5025 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.4026, allocations: 7.969 kB / 0.5025 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008915/0.4115, allocations: 4.713 MB / 0.5071 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.4115, allocations: 0 / 0.5071 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.4126, allocations: 263.6 kB / 0.5074 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005665/0.4131, allocations: 207.5 kB / 0.5076 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-05/0.4132, allocations: 27.98 kB / 0.5076 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002738/0.416, allocations: 2.996 MB / 0.5105 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.416, allocations: 4.094 kB / 0.5105 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004838/0.4208, allocations: 3.148 MB / 0.5136 GB, free: 6.852 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.4218, allocations: 362.5 kB / 0.514 GB, free: 6.496 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003183/0.4222, allocations: 31.88 kB / 0.514 GB, free: 6.465 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009503/0.4231, allocations: 95.94 kB / 0.5141 GB, free: 6.371 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.4233, allocations: 84.83 kB / 0.5142 GB, free: 6.289 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.947e-05/0.4234, allocations: 40 kB / 0.5142 GB, free: 6.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001945/0.4253, allocations: 1.228 MB / 0.5154 GB, free: 5.031 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4253, allocations: 0 / 0.5154 GB, free: 5.031 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001644/0.427, allocations: 487.9 kB / 0.5159 GB, free: 4.555 MB / 430.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005338/0.4323, allocations: 3.796 MB / 0.5196 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003746/0.4361, allocations: 2.114 MB / 0.5216 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.4361, allocations: 0 / 0.5216 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001851/0.4379, allocations: 1.118 MB / 0.5227 GB, free: 13.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002394/0.4403, allocations: 0.4947 MB / 0.5232 GB, free: 12.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.236/0.6764, allocations: 18.8 MB / 0.5416 GB, free: 99.81 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001683/0.678, allocations: 2.013 MB / 0.5435 GB, free: 98.87 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001326/0.6794, allocations: 0.5008 MB / 0.544 GB, free: 98.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/0.6804, allocations: 1.014 MB / 0.545 GB, free: 98.03 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.6804, allocations: 0 / 0.545 GB, free: 98.03 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08717/0.7676, allocations: 47.66 MB / 0.5916 GB, free: 55.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.7/14.46, allocations: 17.86 kB / 0.5916 GB, free: 55.57 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.90084746386856] Failed to read output from testmodel.py, exit status != 0: ['time', 'smpm.is[1]', 'smpm.is[2]', 'inertiaLoad.w', 'multiSensor.flange_a.phi'] 14.576254046987742 14.595947442 14.282226179 Calling exit ...