Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",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.001239/0.001239, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.262/1.262, allocations: 222.9 MB / 239 MB, free: 4.699 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.001285/0.001286, allocations: 196.4 kB / 289.3 MB, free: 2.438 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03536/0.03536, allocations: 8.802 MB / 348.2 MB, free: 4.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001485, allocations: 76.55 kB / 410.7 MB, free: 42.31 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06931/0.07081, allocations: 51.57 MB / 462.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02676/0.09759, allocations: 28.2 MB / 490.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01399/0.1116, allocations: 8.341 MB / 498.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00345/0.1151, allocations: 203.4 kB / 499 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01579/0.1309, allocations: 7.701 MB / 0.4948 GB, free: 2.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007145/0.1381, allocations: 2.533 MB / 0.4973 GB, free: 15.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004263/0.1424, allocations: 1.729 MB / 0.499 GB, free: 13.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01074/0.1531, allocations: 9.933 MB / 0.5087 GB, free: 3.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1901/0.3432, allocations: 24.66 MB / 0.5328 GB, free: 16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006169/0.3494, allocations: 5.404 MB / 0.538 GB, free: 15.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009273/0.3587, allocations: 6.112 MB / 0.544 GB, free: 14.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00455/0.3633, allocations: 1.547 MB / 0.5455 GB, free: 14.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006752/0.3701, allocations: 1.903 MB / 0.5474 GB, free: 14.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004234/0.3743, allocations: 2.991 MB / 0.5503 GB, free: 14.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007178/0.3815, allocations: 5.857 MB / 0.556 GB, free: 13.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01283/0.3944, allocations: 20.51 MB / 0.5761 GB, free: 3.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3944, allocations: 0 / 0.5761 GB, free: 3.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3944, allocations: 0 / 0.5761 GB, free: 3.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003427/0.3948, allocations: 0 / 0.5761 GB, free: 3.793 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: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.02703/0.4218, allocations: 11.89 MB / 0.5877 GB, free: 11.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.4218, allocations: 8.031 kB / 0.5877 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002208/0.4241, allocations: 1.35 MB / 0.589 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02918/0.4532, allocations: 5.6 MB / 0.5945 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01042/0.4637, allocations: 6.137 MB / 0.6005 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004639/0.4642, allocations: 0.709 MB / 0.6011 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002083/0.4663, allocations: 0.9301 MB / 0.6021 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02807/0.4943, allocations: 15.08 MB / 0.6168 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000225/0.4946, allocations: 27.36 kB / 0.6168 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001088/0.4957, allocations: 393.5 kB / 0.6172 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004376/0.4962, allocations: 0.5117 MB / 0.6177 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02356/0.5197, allocations: 13.74 MB / 0.6311 GB, free: 15.13 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07671/0.5965, allocations: 47.82 MB / 0.6778 GB, free: 14.89 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1885/0.785, allocations: 28.77 MB / 0.7059 GB, free: 158.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003825/0.7889, allocations: 2.891 MB / 0.7087 GB, free: 158.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002848/0.7892, allocations: 240.5 kB / 0.7089 GB, free: 158.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.7892, allocations: 67.42 kB / 0.709 GB, free: 158.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 5.521e-06/0.7892, allocations: 0 / 0.709 GB, free: 158.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.02852/0.8177, allocations: 14.71 MB / 0.7234 GB, free: 156.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.8178, allocations: 90.11 kB / 0.7235 GB, free: 156.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005172/0.823, allocations: 3.763 MB / 0.7271 GB, free: 156.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004229/0.8234, allocations: 88.52 kB / 0.7272 GB, free: 156.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001706/0.8252, allocations: 4.077 MB / 0.7312 GB, free: 153.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009092/0.8261, allocations: 1.306 MB / 0.7325 GB, free: 152.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001378/0.8275, allocations: 1.166 MB / 0.7336 GB, free: 152.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.608e-05/0.8275, allocations: 305.6 kB / 0.7339 GB, free: 152 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002924/0.8304, allocations: 2.575 MB / 0.7364 GB, free: 151 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003889/0.8343, allocations: 5.053 MB / 0.7414 GB, free: 146.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007486/0.8418, allocations: 8.246 MB / 0.7494 GB, free: 140.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.811e-05/0.8419, allocations: 26.97 kB / 0.7494 GB, free: 140.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01119/0.8531, allocations: 8.603 MB / 0.7578 GB, free: 137.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.245e-05/0.8532, allocations: 42.47 kB / 0.7579 GB, free: 137.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-05/0.8533, allocations: 85.72 kB / 0.758 GB, free: 137.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002088/0.8554, allocations: 0.8638 MB / 0.7588 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003823/0.8592, allocations: 1.361 MB / 0.7601 GB, free: 137.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008929/0.8681, allocations: 8.957 MB / 0.7689 GB, free: 129.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003567/0.8717, allocations: 336.3 kB / 0.7692 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003837/0.8721, allocations: 299.8 kB / 0.7695 GB, free: 129.1 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004652/0.8768, allocations: 3.509 MB / 0.7729 GB, free: 126.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007137/0.8775, allocations: 408.2 kB / 0.7733 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007949/0.8854, allocations: 5.858 MB / 0.779 GB, free: 120.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.942e-05/0.8855, allocations: 36.84 kB / 0.7791 GB, free: 120.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.8855, allocations: 8 kB / 0.7791 GB, free: 120.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-05/0.8855, allocations: 19.92 kB / 0.7791 GB, free: 120.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01793/0.9035, allocations: 14.76 MB / 0.7935 GB, free: 105.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.9035, allocations: 4 kB / 0.7935 GB, free: 105.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002427/0.9059, allocations: 0.6635 MB / 0.7941 GB, free: 104.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001715/0.9077, allocations: 0.7179 MB / 0.7949 GB, free: 104 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001986/0.9079, allocations: 79.98 kB / 0.7949 GB, free: 104 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007518/0.9154, allocations: 8.007 MB / 0.8027 GB, free: 95.68 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.9154, allocations: 4 kB / 0.8028 GB, free: 95.68 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009425/0.9248, allocations: 8.471 MB / 0.811 GB, free: 87.11 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.9263, allocations: 0.8756 MB / 0.8119 GB, free: 86.21 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004814/0.9268, allocations: 79.83 kB / 0.812 GB, free: 86.13 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001739/0.9286, allocations: 175.8 kB / 0.8121 GB, free: 85.96 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004127/0.929, allocations: 246.7 kB / 0.8124 GB, free: 85.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002003/0.9292, allocations: 114.5 kB / 0.8125 GB, free: 85.61 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002961/0.9322, allocations: 2.528 MB / 0.8149 GB, free: 83.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.9322, allocations: 0 / 0.8149 GB, free: 83.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004423/0.9366, allocations: 1.554 MB / 0.8165 GB, free: 81.55 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.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 (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009751/0.9463, allocations: 9.191 MB / 0.8254 GB, free: 72.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02352/0.9699, allocations: 12.51 MB / 0.8376 GB, free: 59.77 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.9699, allocations: 0 / 0.8376 GB, free: 59.77 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003482/0.9734, allocations: 2.957 MB / 0.8405 GB, free: 56.79 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004255/0.9777, allocations: 0.9636 MB / 0.8415 GB, free: 55.87 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2501/1.228, allocations: 65.43 MB / 0.9054 GB, free: 150.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00535/1.233, allocations: 5.971 MB / 0.9112 GB, free: 149.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00455/1.238, allocations: 1.869 MB / 0.913 GB, free: 149.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003453/1.241, allocations: 3.211 MB / 0.9162 GB, free: 147.6 MB / 494.1 MB Notification: Performance of SimCode: time 8.72e-07/1.241, allocations: 3.969 kB / 0.9162 GB, free: 147.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.716/1.957, allocations: 121.9 MB / 1.035 GB, free: 38.26 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/1.957, allocations: 232.6 kB / 1.035 GB, free: 38 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.173/6.131, allocations: 3.938 kB / 1.035 GB, free: 38 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)