Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/HanserModelica 1.1.1/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 1.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/HanserModelica 1.1.1/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 175 kB / 15.43 MB, free: 5.871 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/HanserModelica 1.1.1/package.mo): time 0.03921/0.03921, allocations: 8.922 MB / 25.1 MB, free: 3.48 MB / 18.57 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 225.7 MB / 253.7 MB, free: 5.207 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000896/0.0008963, allocations: 95.44 kB / 307 MB, free: 2.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003347, allocations: 8 kB / 370.3 MB, free: 3.602 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2467, allocations: 52.55 MB / 422.8 MB, free: 47.91 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02337/0.2701, allocations: 25.21 MB / 448.1 MB, free: 29.66 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01864/0.2888, allocations: 10.19 MB / 458.2 MB, free: 20.09 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005868/0.2947, allocations: 195.4 kB / 458.4 MB, free: 19.89 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005629/0.3003, allocations: 1.764 MB / 460.2 MB, free: 18.12 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009357/0.3097, allocations: 3.495 MB / 463.7 MB, free: 14.38 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005069/0.3148, allocations: 2.283 MB / 466 MB, free: 11.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01113/0.326, allocations: 9.892 MB / 475.9 MB, free: 1.984 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03738/0.3634, allocations: 27.22 MB / 0.4913 GB, free: 5.141 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007441/0.3709, allocations: 3.861 MB / 0.4951 GB, free: 1.262 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00769/0.3786, allocations: 4.621 MB / 0.4996 GB, free: 12.62 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002327/0.3809, allocations: 0.5977 MB / 0.5002 GB, free: 12.02 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004002/0.385, allocations: 0.9333 MB / 0.5011 GB, free: 11.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001968/0.3869, allocations: 1.841 MB / 0.5029 GB, free: 9.242 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006764/0.3937, allocations: 4.608 MB / 0.5074 GB, free: 4.605 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01894/0.4127, allocations: 19.37 MB / 0.5263 GB, free: 1.176 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4127, allocations: 0 / 0.5263 GB, free: 1.176 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4127, allocations: 0 / 0.5263 GB, free: 1.176 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006003/0.4133, allocations: 4 kB / 0.5263 GB, free: 1.172 MB / 394.7 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.02789/0.4412, allocations: 9.801 MB / 0.5359 GB, free: 7.273 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.27e-05/0.4413, allocations: 8.031 kB / 0.5359 GB, free: 7.266 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02923/0.4706, allocations: 5.623 MB / 0.5414 GB, free: 1.625 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01211/0.4827, allocations: 6.157 MB / 0.5474 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007257/0.4835, allocations: 0.7025 MB / 0.5481 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003395/0.4869, allocations: 0.9334 MB / 0.549 GB, free: 9.742 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2393/0.7262, allocations: 14.99 MB / 0.5636 GB, free: 110.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004489/0.7268, allocations: 22.28 kB / 0.5636 GB, free: 110.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002216/0.729, allocations: 392.2 kB / 0.564 GB, free: 110.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000586/0.7296, allocations: 0.5152 MB / 0.5645 GB, free: 110.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.027/0.7566, allocations: 13.65 MB / 0.5778 GB, free: 105.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07095/0.8276, allocations: 48 MB / 0.6247 GB, free: 63.74 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01556/0.8432, allocations: 28.73 MB / 0.6528 GB, free: 31.29 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004146/0.8474, allocations: 2.883 MB / 0.6556 GB, free: 28.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004129/0.8478, allocations: 236.6 kB / 0.6558 GB, free: 28.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.392e-05/0.8479, allocations: 77.42 kB / 0.6559 GB, free: 28.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=372): time 7.213e-06/0.8479, allocations: 0 / 0.6559 GB, free: 28.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=380): time 0.02728/0.8752, allocations: 14.66 MB / 0.6702 GB, free: 13.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.8753, allocations: 94.33 kB / 0.6703 GB, free: 13.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005671/0.881, allocations: 3.73 MB / 0.6739 GB, free: 9.465 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005269/0.8815, allocations: 85.7 kB / 0.674 GB, free: 9.375 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/0.8834, allocations: 4.087 MB / 0.678 GB, free: 5.266 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001097/0.8845, allocations: 1.305 MB / 0.6793 GB, free: 3.973 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005318/0.8851, allocations: 120 kB / 0.6794 GB, free: 3.855 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000388/0.8855, allocations: 0.5423 MB / 0.6799 GB, free: 3.305 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003624/0.8891, allocations: 2.553 MB / 0.6824 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006103/0.8952, allocations: 5.031 MB / 0.6873 GB, free: 10.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/0.9062, allocations: 8.214 MB / 0.6954 GB, free: 1.152 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-05/0.9063, allocations: 24 kB / 0.6954 GB, free: 1.129 MB / 442.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01584/0.9221, allocations: 8.553 MB / 0.7037 GB, free: 8.543 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.141e-05/0.9222, allocations: 40 kB / 0.7038 GB, free: 8.504 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000122/0.9224, allocations: 84 kB / 0.7038 GB, free: 8.422 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/0.9247, allocations: 0.8506 MB / 0.7047 GB, free: 7.566 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004864/0.9295, allocations: 1.357 MB / 0.706 GB, free: 6.207 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01171/0.9413, allocations: 8.369 MB / 0.7142 GB, free: 13.57 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004785/0.9461, allocations: 327.3 kB / 0.7145 GB, free: 13.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009905/0.9471, allocations: 304 kB / 0.7148 GB, free: 12.96 MB / 474.7 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.006537/0.9537, allocations: 3.505 MB / 0.7182 GB, free: 9.438 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001182/0.9549, allocations: 422.8 kB / 0.7186 GB, free: 9.02 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0121/0.967, allocations: 5.823 MB / 0.7243 GB, free: 3.16 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.117e-05/0.9671, allocations: 36 kB / 0.7243 GB, free: 3.125 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.807e-05/0.9671, allocations: 11.98 kB / 0.7243 GB, free: 3.113 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.785e-05/0.9671, allocations: 19.92 kB / 0.7244 GB, free: 3.094 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0224/0.9896, allocations: 14.75 MB / 0.7388 GB, free: 4.184 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.9896, allocations: 0 / 0.7388 GB, free: 4.184 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002916/0.9925, allocations: 0.6631 MB / 0.7394 GB, free: 3.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002264/0.9948, allocations: 0.7095 MB / 0.7401 GB, free: 2.805 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002362/0.9951, allocations: 83.97 kB / 0.7402 GB, free: 2.723 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1815/1.177, allocations: 7.393 MB / 0.7474 GB, free: 156.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.177, allocations: 3.938 kB / 0.7474 GB, free: 156.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01131/1.188, allocations: 8.441 MB / 0.7556 GB, free: 153.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002034/1.19, allocations: 0.884 MB / 0.7565 GB, free: 153.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000491/1.191, allocations: 68.34 kB / 0.7566 GB, free: 153.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/1.192, allocations: 180.6 kB / 0.7568 GB, free: 153.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005174/1.193, allocations: 256.7 kB / 0.757 GB, free: 153.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002064/1.193, allocations: 111.8 kB / 0.7571 GB, free: 153.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003817/1.197, allocations: 2.491 MB / 0.7595 GB, free: 152.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.197, allocations: 1.219 kB / 0.7595 GB, free: 152.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005246/1.202, allocations: 1.55 MB / 0.761 GB, free: 152.2 MB / 490.7 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.0004715/1.202, allocations: 262.6 kB / 0.7613 GB, free: 152 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009621/1.212, allocations: 6.493 MB / 0.7676 GB, free: 149.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/1.212, allocations: 3.844 kB / 0.7676 GB, free: 149.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003771/1.216, allocations: 2.946 MB / 0.7705 GB, free: 148.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005215/1.221, allocations: 0.9077 MB / 0.7714 GB, free: 147.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02377/1.245, allocations: 19.77 MB / 0.7907 GB, free: 135.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004995/1.25, allocations: 5.964 MB / 0.7965 GB, free: 131 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004818/1.255, allocations: 1.864 MB / 0.7984 GB, free: 129.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008688/1.256, allocations: 350.1 kB / 0.7987 GB, free: 129.5 MB / 490.7 MB Notification: Performance of SimCode: time 7.81e-07/1.256, allocations: 0 / 0.7987 GB, free: 129.5 MB / 490.7 MB Notification: Performance of Templates: time 0.08305/1.339, allocations: 60.16 MB / 0.8574 GB, free: 71.58 MB / 490.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)