Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",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.00123/0.00123, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.266/1.266, allocations: 222.9 MB / 238.9 MB, free: 4.766 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.001456/0.001456, allocations: 196.4 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03301/0.03301, allocations: 8.806 MB / 348.1 MB, free: 4.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 78.08 kB / 410.5 MB, free: 42.35 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07847/0.07984, allocations: 51.56 MB / 462.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01596/0.09584, allocations: 15.63 MB / 477.7 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009074/0.105, allocations: 5.212 MB / 482.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.107, allocations: 91.69 kB / 483 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002646/0.1096, allocations: 1.065 MB / 484.1 MB, free: 8.711 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004036/0.1137, allocations: 1.422 MB / 485.5 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001917/0.1157, allocations: 0.8945 MB / 486.4 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005632/0.1213, allocations: 4.995 MB / 491.4 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003366/0.1247, allocations: 2.933 MB / 494.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002179/0.1269, allocations: 1.7 MB / 496 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00274/0.1296, allocations: 2.245 MB / 498.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006712/0.1303, allocations: 340 kB / 498.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/0.1318, allocations: 0.5466 MB / 499.1 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008876/0.1327, allocations: 1.047 MB / 0.4885 GB, free: 8.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00316/0.1359, allocations: 2.173 MB / 0.4906 GB, free: 6.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006953/0.1429, allocations: 7.259 MB / 0.4977 GB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1429, allocations: 0 / 0.4977 GB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1429, allocations: 0 / 0.4977 GB, free: 15.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001641/0.1431, allocations: 4 kB / 0.4977 GB, free: 15.02 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01276/0.1558, allocations: 4.959 MB / 0.5025 GB, free: 9.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.1559, allocations: 8.031 kB / 0.5025 GB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00104/0.1569, allocations: 0.5531 MB / 0.5031 GB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004944/0.1619, allocations: 0.9639 MB / 0.504 GB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004913/0.1668, allocations: 2.646 MB / 0.5066 GB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/0.167, allocations: 275.8 kB / 0.5069 GB, free: 5.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005867/0.1676, allocations: 371.8 kB / 0.5072 GB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007689/0.1753, allocations: 4.776 MB / 0.5119 GB, free: 300 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.688e-05/0.1754, allocations: 7.938 kB / 0.5119 GB, free: 292 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003087/0.1757, allocations: 152 kB / 0.512 GB, free: 140 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001554/0.1759, allocations: 163.4 kB / 0.5122 GB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006121/0.182, allocations: 4.046 MB / 0.5161 GB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1765/0.3585, allocations: 15.81 MB / 0.5316 GB, free: 58.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00481/0.3634, allocations: 6.932 MB / 0.5383 GB, free: 53.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002194/0.3656, allocations: 1.537 MB / 0.5398 GB, free: 53.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00618/0.3718, allocations: 4.242 MB / 0.544 GB, free: 52.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.3718, allocations: 47.12 kB / 0.544 GB, free: 52.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.206e-06/0.3718, allocations: 0 / 0.544 GB, free: 52.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01122/0.3831, allocations: 6.446 MB / 0.5503 GB, free: 50.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.3831, allocations: 70.03 kB / 0.5504 GB, free: 50.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00374/0.3869, allocations: 2.241 MB / 0.5526 GB, free: 49.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.387, allocations: 49.64 kB / 0.5526 GB, free: 49.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000966/0.388, allocations: 1.707 MB / 0.5543 GB, free: 48.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000365/0.3884, allocations: 0.5476 MB / 0.5548 GB, free: 47.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005146/0.3889, allocations: 385 kB / 0.5552 GB, free: 47.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.422e-05/0.389, allocations: 305.1 kB / 0.5555 GB, free: 47.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.3901, allocations: 0.8259 MB / 0.5563 GB, free: 47.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001468/0.3916, allocations: 1.487 MB / 0.5578 GB, free: 45.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002661/0.3943, allocations: 2.45 MB / 0.5601 GB, free: 44.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.3943, allocations: 7.906 kB / 0.5602 GB, free: 44.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004443/0.3987, allocations: 2.948 MB / 0.563 GB, free: 42.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.082e-05/0.3988, allocations: 19.03 kB / 0.563 GB, free: 42.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.849e-05/0.3988, allocations: 19.09 kB / 0.5631 GB, free: 42.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008302/0.3996, allocations: 299.9 kB / 0.5634 GB, free: 42.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.4012, allocations: 489.6 kB / 0.5638 GB, free: 42.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003718/0.4049, allocations: 4.509 MB / 0.5682 GB, free: 38.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.4067, allocations: 85.12 kB / 0.5683 GB, free: 38.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.4068, allocations: 94.33 kB / 0.5684 GB, free: 38.3 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (250): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 2 systems {(2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001885/0.4087, allocations: 1.13 MB / 0.5695 GB, free: 37.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003228/0.409, allocations: 233.3 kB / 0.5697 GB, free: 37.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00339/0.4124, allocations: 2.417 MB / 0.5721 GB, free: 35.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.4125, allocations: 15.12 kB / 0.5721 GB, free: 35.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.4125, allocations: 3.875 kB / 0.5721 GB, free: 35.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.4125, allocations: 11.91 kB / 0.5721 GB, free: 35.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007173/0.4197, allocations: 5.795 MB / 0.5778 GB, free: 31.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/0.4197, allocations: 3.656 kB / 0.5778 GB, free: 31.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.4208, allocations: 283.6 kB / 0.578 GB, free: 30.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007581/0.4216, allocations: 319.3 kB / 0.5783 GB, free: 30.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.731e-05/0.4217, allocations: 40.67 kB / 0.5784 GB, free: 30.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004428/0.4261, allocations: 6.443 MB / 0.5847 GB, free: 23.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4261, allocations: 0 / 0.5847 GB, free: 23.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004324/0.4305, allocations: 3.521 MB / 0.5881 GB, free: 20.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009379/0.4314, allocations: 0.4942 MB / 0.5886 GB, free: 19.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002799/0.4317, allocations: 36 kB / 0.5886 GB, free: 19.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.4327, allocations: 63.95 kB / 0.5887 GB, free: 19.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002475/0.433, allocations: 117.1 kB / 0.5888 GB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.956e-05/0.4331, allocations: 47.98 kB / 0.5889 GB, free: 19.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001854/0.4349, allocations: 1.515 MB / 0.5903 GB, free: 17.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4349, allocations: 0 / 0.5903 GB, free: 17.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002203/0.4371, allocations: 0.6523 MB / 0.591 GB, free: 17.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.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 {(2,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004406/0.4416, allocations: 4.15 MB / 0.595 GB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003059/0.4446, allocations: 2.431 MB / 0.5974 GB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4447, allocations: 4.25 kB / 0.5974 GB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.4462, allocations: 1.411 MB / 0.5988 GB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/0.4485, allocations: 0.5526 MB / 0.5993 GB, free: 8.441 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04739/0.496, allocations: 28.87 MB / 0.6275 GB, free: 8.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002172/0.4982, allocations: 2.519 MB / 0.63 GB, free: 6.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001834/0.5, allocations: 0.5077 MB / 0.6305 GB, free: 5.918 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00162/0.5016, allocations: 1.343 MB / 0.6318 GB, free: 4.574 MB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5017, allocations: 4 kB / 0.6318 GB, free: 4.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08619/0.5878, allocations: 57.61 MB / 0.688 GB, free: 11.37 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.5881, allocations: 228.4 kB / 0.6883 GB, free: 11.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.791/3.379, allocations: 0 / 0.6883 GB, free: 11.12 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)