Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",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.0008408/0.0008408, allocations: 89.39 kB / 16.31 MB, free: 5.676 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.0007994/0.0007994, allocations: 177.7 kB / 17.2 MB, free: 5.598 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.364/1.364, allocations: 223.2 MB / 241.2 MB, free: 304 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002563/0.0002563, allocations: 4 kB / 300.9 MB, free: 6.371 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1053, allocations: 50.43 MB / 351.3 MB, free: 3.938 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.009668/0.115, allocations: 7.954 MB / 359.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006068/0.1211, allocations: 2.946 MB / 362.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.1225, allocations: 39.81 kB / 362.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001609/0.1242, allocations: 0.5477 MB / 362.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002103/0.1263, allocations: 0.5865 MB / 363.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007383/0.127, allocations: 207.6 kB / 363.6 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002848/0.1299, allocations: 2.17 MB / 365.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001425/0.1313, allocations: 0.9647 MB / 366.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001459/0.1328, allocations: 0.7119 MB / 367.5 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001487/0.1343, allocations: 0.9456 MB / 368.4 MB, free: 2.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002289/0.1345, allocations: 104 kB / 368.5 MB, free: 2.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005255/0.1351, allocations: 175.8 kB / 368.7 MB, free: 2.508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005812/0.1357, allocations: 0.5218 MB / 369.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004695/0.1361, allocations: 396.7 kB / 369.6 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1933/0.3295, allocations: 2.487 MB / 372.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.3295, allocations: 0.5625 kB / 372.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3295, allocations: 1.75 kB / 372.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.695e-05/0.3296, allocations: 0 / 372.1 MB, free: 12.33 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004273/0.3339, allocations: 1.945 MB / 374 MB, free: 11.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.334, allocations: 12.28 kB / 374 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003913/0.3344, allocations: 231.9 kB / 374.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006605/0.335, allocations: 227.3 kB / 374.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002046/0.3371, allocations: 1.142 MB / 375.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.14e-05/0.3372, allocations: 111.9 kB / 375.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000235/0.3374, allocations: 157.2 kB / 375.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003664/0.3411, allocations: 1.991 MB / 377.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.397e-05/0.3412, allocations: 14.38 kB / 377.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001616/0.3414, allocations: 69.02 kB / 378 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.3415, allocations: 75.97 kB / 378 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003302/0.3448, allocations: 1.638 MB / 379.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01035/0.3552, allocations: 6.964 MB / 386.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000749/0.3559, allocations: 443.9 kB / 387.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003557/0.3563, allocations: 258.7 kB / 387.3 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002057/0.3565, allocations: 122.4 kB / 387.4 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.3566, allocations: 36.66 kB / 387.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 3.086e-06/0.3566, allocations: 4 kB / 387.5 MB, free: 7.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.00671/0.3633, allocations: 3.298 MB / 390.8 MB, free: 6.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001828/0.3651, allocations: 2.165 MB / 393 MB, free: 4.703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00266/0.3678, allocations: 1.607 MB / 394.6 MB, free: 3.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001269/0.368, allocations: 36.45 kB / 394.6 MB, free: 3.781 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005982/0.3686, allocations: 1.021 MB / 395.6 MB, free: 2.879 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.3688, allocations: 237.3 kB / 395.8 MB, free: 2.684 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.585e-05/0.3688, allocations: 31.84 kB / 395.9 MB, free: 2.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.456e-05/0.3689, allocations: 370 kB / 396.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007799/0.3697, allocations: 0.5143 MB / 396.8 MB, free: 2.051 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.3708, allocations: 1.459 MB / 398.2 MB, free: 492 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008851/0.3717, allocations: 0.8026 MB / 399 MB, free: 88 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.3717, allocations: 7.875 kB / 399 MB, free: 88 kB / 302.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003249/0.375, allocations: 2.143 MB / 401.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.375, allocations: 22.19 kB / 401.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.569e-05/0.3751, allocations: 30.31 kB / 401.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004875/0.3756, allocations: 239.9 kB / 401.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.3766, allocations: 394.6 kB / 401.8 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/0.3781, allocations: 1.707 MB / 403.5 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.3795, allocations: 136.8 kB / 403.7 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.3796, allocations: 97.95 kB / 403.8 MB, free: 13.41 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * 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: 1 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009307/0.3806, allocations: 0.5831 MB / 404.4 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002587/0.3808, allocations: 154.1 kB / 404.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001851/0.3827, allocations: 1.106 MB / 405.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.3827, allocations: 8 kB / 405.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3827, allocations: 3.938 kB / 405.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.3828, allocations: 10.14 kB / 405.6 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005245/0.388, allocations: 3.391 MB / 409 MB, free: 8.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.388, allocations: 4.094 kB / 409 MB, free: 8.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004103/0.3885, allocations: 113.9 kB / 409.1 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005898/0.3891, allocations: 230.9 kB / 409.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/0.3891, allocations: 19.98 kB / 409.4 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003611/0.3927, allocations: 3.683 MB / 413.1 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001938/0.3947, allocations: 2.014 MB / 415.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00265/0.3973, allocations: 1.74 MB / 416.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006877/0.398, allocations: 311.1 kB / 417.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.3982, allocations: 16 kB / 417.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000603/0.3988, allocations: 52 kB / 417.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.399, allocations: 62.78 kB / 417.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.655e-05/0.399, allocations: 20 kB / 417.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00157/0.4006, allocations: 1.059 MB / 418.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4006, allocations: 4 kB / 418.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001741/0.4024, allocations: 384 kB / 418.7 MB, free: 13.93 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00281/0.4052, allocations: 2.32 MB / 421 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002512/0.4077, allocations: 1.599 MB / 422.6 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.4077, allocations: 2.297 kB / 422.6 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.409, allocations: 0.8485 MB / 423.5 MB, free: 9.102 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.4109, allocations: 398.4 kB / 423.9 MB, free: 8.727 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02014/0.4311, allocations: 11.04 MB / 434.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/0.4325, allocations: 1.469 MB / 436.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001201/0.4337, allocations: 350 kB / 436.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008622/0.4346, allocations: 0.6203 MB / 437.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4346, allocations: 3.938 kB / 437.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06446/0.499, allocations: 33.86 MB / 471.2 MB, free: 9.055 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002021/0.4993, allocations: 243.8 kB / 471.4 MB, free: 8.812 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.727/3.226, allocations: 0 / 471.4 MB, free: 8.812 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat does not exist to compare? outputFormat=mat