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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 102.6 kB / 16.4 MB, free: 6.512 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 242.1 MB, free: 15.21 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00222/0.00222, allocations: 200.4 kB / 294.4 MB, free: 12.64 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04057/0.04057, allocations: 8.784 MB / 355.3 MB, free: 15.9 MB / 302.1 MB " [Timeout remaining time 180] 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: translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002326/0.002326, allocations: 83.86 kB / 472.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3194, allocations: 51.56 MB / 0.5119 GB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.03325/0.3527, allocations: 28.72 MB / 0.54 GB, free: 232 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01913/0.3719, allocations: 8.454 MB / 0.5482 GB, free: 7.742 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006359/0.3783, allocations: 211.4 kB / 0.5484 GB, free: 7.535 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01993/0.3983, allocations: 8.122 MB / 0.5564 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.4086, allocations: 2.819 MB / 0.5591 GB, free: 12.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005906/0.4145, allocations: 1.85 MB / 0.5609 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01454/0.4291, allocations: 9.99 MB / 0.5707 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03461/0.4637, allocations: 21.34 MB / 0.5915 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008795/0.4725, allocations: 5.369 MB / 0.5968 GB, free: 5.824 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01147/0.484, allocations: 6.046 MB / 0.6027 GB, free: 15.76 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005289/0.4894, allocations: 1.539 MB / 0.6042 GB, free: 14.22 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006366/0.4958, allocations: 1.89 MB / 0.606 GB, free: 12.33 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005008/0.5008, allocations: 2.985 MB / 0.6089 GB, free: 9.336 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01086/0.5117, allocations: 5.856 MB / 0.6147 GB, free: 3.457 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02893/0.5406, allocations: 20.68 MB / 0.6348 GB, free: 14.71 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.5407, allocations: 0 / 0.6348 GB, free: 14.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5407, allocations: 0 / 0.6348 GB, free: 14.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005318/0.5412, allocations: 0 / 0.6348 GB, free: 14.71 MB / 462.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.03691/0.5781, allocations: 12.06 MB / 0.6466 GB, free: 2.539 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.5782, allocations: 8.031 kB / 0.6466 GB, free: 2.531 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03139/0.6096, allocations: 5.679 MB / 0.6522 GB, free: 12.84 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/0.6243, allocations: 6.338 MB / 0.6584 GB, free: 6.418 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008561/0.6252, allocations: 0.7025 MB / 0.659 GB, free: 5.715 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003656/0.6288, allocations: 0.9334 MB / 0.66 GB, free: 4.781 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4863/1.115, allocations: 15.07 MB / 0.6747 GB, free: 116 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002082/1.115, allocations: 22.12 kB / 0.6747 GB, free: 116 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001007/1.116, allocations: 390.6 kB / 0.6751 GB, free: 115.7 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003395/1.117, allocations: 0.5179 MB / 0.6756 GB, free: 115.6 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01998/1.137, allocations: 13.74 MB / 0.689 GB, free: 108.8 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0605/1.197, allocations: 47.43 MB / 0.7353 GB, free: 61.72 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01517/1.213, allocations: 28.8 MB / 0.7634 GB, free: 29.22 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003939/1.216, allocations: 2.898 MB / 0.7663 GB, free: 26.32 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003985/1.217, allocations: 236.6 kB / 0.7665 GB, free: 26.06 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.122e-05/1.217, allocations: 69.48 kB / 0.7666 GB, free: 25.98 MB / 478.1 MB Notification: Performance of pre-optimization done (n=372): time 4.629e-06/1.217, allocations: 0 / 0.7666 GB, free: 25.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=380): time 0.02706/1.244, allocations: 14.87 MB / 0.7811 GB, free: 11.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/1.244, allocations: 102.3 kB / 0.7812 GB, free: 11.29 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005486/1.25, allocations: 3.767 MB / 0.7849 GB, free: 7.59 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004767/1.25, allocations: 89.7 kB / 0.7849 GB, free: 7.496 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001835/1.252, allocations: 4.22 MB / 0.7891 GB, free: 3.402 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001067/1.253, allocations: 1.369 MB / 0.7904 GB, free: 2.051 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001852/1.255, allocations: 1.172 MB / 0.7915 GB, free: 0.8672 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.789e-05/1.255, allocations: 305.1 kB / 0.7918 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004199/1.259, allocations: 2.575 MB / 0.7943 GB, free: 13.99 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00733/1.267, allocations: 5.053 MB / 0.7993 GB, free: 7.773 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0134/1.28, allocations: 8.261 MB / 0.8073 GB, free: 14.33 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.287e-05/1.28, allocations: 24 kB / 0.8074 GB, free: 14.31 MB / 0.4982 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01814/1.298, allocations: 8.639 MB / 0.8158 GB, free: 5.637 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001558/1.298, allocations: 47.94 kB / 0.8159 GB, free: 5.59 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002448/1.299, allocations: 80 kB / 0.8159 GB, free: 5.512 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002789/1.301, allocations: 0.8667 MB / 0.8168 GB, free: 4.641 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005203/1.307, allocations: 1.357 MB / 0.8181 GB, free: 3.281 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01386/1.321, allocations: 9.039 MB / 0.8269 GB, free: 9.961 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004469/1.325, allocations: 339.6 kB / 0.8273 GB, free: 9.629 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001164/1.326, allocations: 304 kB / 0.8275 GB, free: 9.332 MB / 0.5138 GB 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.007153/1.333, allocations: 3.509 MB / 0.831 GB, free: 5.809 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/1.335, allocations: 441.2 kB / 0.8314 GB, free: 5.375 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01343/1.348, allocations: 5.854 MB / 0.8371 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.744e-05/1.348, allocations: 39.94 kB / 0.8371 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.684e-05/1.348, allocations: 8 kB / 0.8372 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.848e-05/1.349, allocations: 19.92 kB / 0.8372 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03141/1.38, allocations: 14.48 MB / 0.8513 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.016e-05/1.38, allocations: 4.375 kB / 0.8513 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003346/1.383, allocations: 0.6709 MB / 0.852 GB, free: 240 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002378/1.386, allocations: 0.723 MB / 0.8527 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000438/1.386, allocations: 83.98 kB / 0.8528 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/1.398, allocations: 8.061 MB / 0.8606 GB, free: 7.094 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.357e-06/1.398, allocations: 4 kB / 0.8606 GB, free: 7.09 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3306/1.729, allocations: 8.52 MB / 0.8689 GB, free: 178.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0032/1.732, allocations: 0.9052 MB / 0.8698 GB, free: 178.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001179/1.733, allocations: 69.17 kB / 0.8699 GB, free: 178.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002526/1.736, allocations: 174.6 kB / 0.8701 GB, free: 178.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006018/1.736, allocations: 256.7 kB / 0.8703 GB, free: 178.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002497/1.737, allocations: 110.3 kB / 0.8704 GB, free: 178.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004155/1.741, allocations: 2.524 MB / 0.8729 GB, free: 177.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.4e-07/1.741, allocations: 0 / 0.8729 GB, free: 177.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007883/1.749, allocations: 1.552 MB / 0.8744 GB, free: 177.7 MB / 0.545 GB 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.0008545/1.75, allocations: 254.3 kB / 0.8746 GB, free: 177.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009664/1.759, allocations: 6.579 MB / 0.8811 GB, free: 175 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/1.759, allocations: 0 / 0.8811 GB, free: 175 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00407/1.763, allocations: 2.97 MB / 0.884 GB, free: 173.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004468/1.768, allocations: 0.9706 MB / 0.8849 GB, free: 173.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02457/1.793, allocations: 15.88 MB / 0.9004 GB, free: 166.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005996/1.799, allocations: 5.965 MB / 0.9062 GB, free: 164 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004509/1.803, allocations: 1.869 MB / 0.9081 GB, free: 162.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/1.804, allocations: 350.1 kB / 0.9084 GB, free: 162.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.262e-06/1.804, allocations: 0 / 0.9084 GB, free: 162.4 MB / 0.545 GB Notification: Performance of Templates: time 0.101/1.905, allocations: 60.33 MB / 0.9673 GB, free: 104.8 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.089365894906223]