Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",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.001527/0.001527, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 239.3 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 188.5 kB / 289.5 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0358/0.0358, allocations: 8.797 MB / 348.5 MB, free: 4.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 79.39 kB / 411.2 MB, free: 41.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1097, allocations: 51.56 MB / 462.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01963/0.1294, allocations: 16.7 MB / 479.5 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.1427, allocations: 5.453 MB / 484.9 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004283/0.147, allocations: 99.62 kB / 485 MB, free: 7.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004521/0.1515, allocations: 1.273 MB / 486.3 MB, free: 6.578 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.006746/0.1584, allocations: 1.615 MB / 487.9 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003456/0.1618, allocations: 1.041 MB / 488.9 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007322/0.1692, allocations: 4.987 MB / 493.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006623/0.1758, allocations: 4.307 MB / 498.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00382/0.1797, allocations: 2.258 MB / 0.4888 GB, free: 8.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004226/0.1839, allocations: 2.639 MB / 0.4913 GB, free: 5.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001667/0.1856, allocations: 0.6211 MB / 0.4919 GB, free: 4.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002657/0.1883, allocations: 0.8551 MB / 0.4928 GB, free: 4.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002134/0.1905, allocations: 1.43 MB / 0.4942 GB, free: 2.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005358/0.1958, allocations: 2.649 MB / 0.4968 GB, free: 28 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009276/0.2051, allocations: 8.062 MB / 0.5046 GB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2052, allocations: 0 / 0.5046 GB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.2052, allocations: 4 kB / 0.5046 GB, free: 7.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002431/0.2055, allocations: 0 / 0.5046 GB, free: 7.938 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.0152/0.2207, allocations: 5.397 MB / 0.5099 GB, free: 2.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.2207, allocations: 8.031 kB / 0.5099 GB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001051/0.2218, allocations: 0.5519 MB / 0.5105 GB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005401/0.2272, allocations: 0.9869 MB / 0.5114 GB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008021/0.2353, allocations: 2.964 MB / 0.5143 GB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003055/0.2356, allocations: 308.4 kB / 0.5146 GB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001242/0.2369, allocations: 403.9 kB / 0.515 GB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01005/0.2469, allocations: 5.217 MB / 0.5201 GB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.796e-05/0.247, allocations: 3.938 kB / 0.5201 GB, free: 7.871 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003746/0.2474, allocations: 164 kB / 0.5202 GB, free: 7.711 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001674/0.2476, allocations: 172 kB / 0.5204 GB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008234/0.2558, allocations: 4.47 MB / 0.5248 GB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2307/0.4866, allocations: 16.81 MB / 0.5412 GB, free: 58.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007734/0.4944, allocations: 8.436 MB / 0.5494 GB, free: 51.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003171/0.4976, allocations: 1.712 MB / 0.5511 GB, free: 51.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008406/0.506, allocations: 4.985 MB / 0.556 GB, free: 47.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.5061, allocations: 52.86 kB / 0.556 GB, free: 47.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 3.717e-06/0.5061, allocations: 0 / 0.556 GB, free: 47.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01131/0.5174, allocations: 6.156 MB / 0.562 GB, free: 43.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.5175, allocations: 68.44 kB / 0.5621 GB, free: 43.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/0.5207, allocations: 2.291 MB / 0.5643 GB, free: 42.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002219/0.5209, allocations: 53.55 kB / 0.5644 GB, free: 42.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001198/0.5221, allocations: 1.847 MB / 0.5662 GB, free: 40.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005347/0.5227, allocations: 0.5474 MB / 0.5667 GB, free: 40.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006509/0.5233, allocations: 397.5 kB / 0.5671 GB, free: 39.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.984e-05/0.5234, allocations: 301.1 kB / 0.5674 GB, free: 39.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001522/0.525, allocations: 0.8462 MB / 0.5682 GB, free: 39.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00154/0.5265, allocations: 1.566 MB / 0.5697 GB, free: 37.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00285/0.5294, allocations: 2.573 MB / 0.5723 GB, free: 35.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/0.5294, allocations: 7.344 kB / 0.5723 GB, free: 35.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.004576/0.534, allocations: 2.894 MB / 0.5751 GB, free: 33.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.534, allocations: 18.19 kB / 0.5751 GB, free: 33.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.863e-05/0.5341, allocations: 23.72 kB / 0.5751 GB, free: 33.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003282/0.5344, allocations: 126.2 kB / 0.5752 GB, free: 32.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001746/0.5362, allocations: 0.5421 MB / 0.5758 GB, free: 32.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/0.5377, allocations: 2.013 MB / 0.5777 GB, free: 30.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/0.54, allocations: 115.8 kB / 0.5779 GB, free: 30.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001807/0.5402, allocations: 99.98 kB / 0.5779 GB, free: 30 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (270): * Single equations (assignments): 268 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002559/0.5428, allocations: 1.204 MB / 0.5791 GB, free: 28.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005392/0.5433, allocations: 241.1 kB / 0.5794 GB, free: 28.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003791/0.5471, allocations: 2.46 MB / 0.5818 GB, free: 26.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.599e-05/0.5472, allocations: 16 kB / 0.5818 GB, free: 26.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.5472, allocations: 4 kB / 0.5818 GB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.759e-05/0.5472, allocations: 11.97 kB / 0.5818 GB, free: 26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008713/0.5559, allocations: 5.795 MB / 0.5874 GB, free: 20.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.556, allocations: 4 kB / 0.5874 GB, free: 20.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.5571, allocations: 287.8 kB / 0.5877 GB, free: 19.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007098/0.5579, allocations: 314.2 kB / 0.588 GB, free: 19.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.928e-05/0.558, allocations: 36.11 kB / 0.5881 GB, free: 19.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004973/0.5629, allocations: 7 MB / 0.5949 GB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.563, allocations: 4.031 kB / 0.5949 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004817/0.5678, allocations: 3.571 MB / 0.5984 GB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/0.5691, allocations: 498 kB / 0.5989 GB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003438/0.5695, allocations: 43.98 kB / 0.5989 GB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.5706, allocations: 75.94 kB / 0.599 GB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002818/0.5709, allocations: 121.1 kB / 0.5991 GB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.927e-05/0.5709, allocations: 47.98 kB / 0.5991 GB, free: 7.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002018/0.573, allocations: 1.552 MB / 0.6007 GB, free: 6.066 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.573, allocations: 1.312 kB / 0.6007 GB, free: 6.066 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002606/0.5756, allocations: 0.6696 MB / 0.6013 GB, free: 5.398 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005227/0.5808, allocations: 4.197 MB / 0.6054 GB, free: 1.109 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0059/0.5868, allocations: 2.918 MB / 0.6083 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5868, allocations: 0 / 0.6083 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002203/0.589, allocations: 1.447 MB / 0.6097 GB, free: 12.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00293/0.5919, allocations: 0.5931 MB / 0.6102 GB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04216/0.6341, allocations: 27.74 MB / 0.6373 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002589/0.6367, allocations: 2.665 MB / 0.6399 GB, free: 11.21 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002181/0.639, allocations: 0.5552 MB / 0.6405 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00196/0.6409, allocations: 1.479 MB / 0.6419 GB, free: 9.168 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.6409, allocations: 0 / 0.6419 GB, free: 9.168 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3093/0.9502, allocations: 60.15 MB / 0.7007 GB, free: 137.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/11.59, allocations: 6.031 kB / 0.7007 GB, free: 137.1 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)